diff options
Diffstat (limited to 'example.py')
-rwxr-xr-x | example.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -33,7 +33,7 @@ import time from pygerrit.client import GerritClient from pygerrit.error import GerritError -from pygerrit.stream import GerritStreamErrorEvent +from pygerrit.events import ErrorEvent def _main(): @@ -77,7 +77,7 @@ def _main(): timeout=options.timeout) if event: logging.info("Event: %s", event) - if isinstance(event, GerritStreamErrorEvent): + if isinstance(event, ErrorEvent): logging.error(event.error) errors.set() break |