summaryrefslogtreecommitdiff
path: root/pygerrit/stream.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygerrit/stream.py')
-rw-r--r--pygerrit/stream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygerrit/stream.py b/pygerrit/stream.py
index f9ad55e..2af49d1 100644
--- a/pygerrit/stream.py
+++ b/pygerrit/stream.py
@@ -74,7 +74,7 @@ class GerritStream(Thread):
line = stdout.readline()
json_data = json.loads(line)
self._gerrit.put_event(json_data)
- except GerritError, e:
+ except (GerritError, ValueError, IOError), e:
error = json.loads('{"type":"gerrit-stream-error",'
'"error":"%s"}' % str(e))
self._gerrit.put_event(error)