summaryrefslogtreecommitdiff
path: root/test/handlers/protocol_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/handlers/protocol_test.py')
-rw-r--r--test/handlers/protocol_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/handlers/protocol_test.py b/test/handlers/protocol_test.py
index 57cdf58..42ac4b2 100644
--- a/test/handlers/protocol_test.py
+++ b/test/handlers/protocol_test.py
@@ -72,7 +72,7 @@ class DummySerial(SerialBase):
self.logger.debug('enabled logging')
else:
raise ValueError('unknown option: %r' % (option,))
- except ValueError, e:
+ except ValueError as e:
raise SerialException('expected a string in the form "[test://][option[/option...]]": %s' % e)
return (host, port)