summaryrefslogtreecommitdiff
path: root/pygerrit/client.py
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2012-10-25 19:09:16 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2012-10-25 19:09:38 +0900
commit89b5d495c329143f433d1fbe89c962c5ff1f81b4 (patch)
tree71ea634529f2457a6d20e079e37905e125c9bfad /pygerrit/client.py
parent1ce36c40f662b443e199e58a14863d136e435310 (diff)
downloadpygerrit-89b5d495c329143f433d1fbe89c962c5ff1f81b4.tar.gz
Python 2.6 style exception handling
Handle exceptions with the syntax: except Exception as e rather than: except Exception, e Change-Id: I883fdc1db541b9d2699712bfd2bd328261635005
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"])