summaryrefslogtreecommitdiff
path: root/pygerrit/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygerrit/client.py')
-rw-r--r--pygerrit/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygerrit/client.py b/pygerrit/client.py
index 2015b06..95f4ce0 100644
--- a/pygerrit/client.py
+++ b/pygerrit/client.py
@@ -74,7 +74,7 @@ class GerritClient(object):
# represents a change or if it's the query status indicator.
try:
data = decoder.decode(line)
- except ValueError, err:
+ except ValueError as err:
raise GerritError("Query returned invalid data: %s", err)
if "type" in data and data["type"] == "error":
raise GerritError("Query error: %s" % data["message"])