diff --git a/src/npoapi/bin/npo_media_follow_changes.py b/src/npoapi/bin/npo_media_follow_changes.py index 5e6f833..0e7e483 100755 --- a/src/npoapi/bin/npo_media_follow_changes.py +++ b/src/npoapi/bin/npo_media_follow_changes.py @@ -112,8 +112,11 @@ def one_call(self): reason_filter=self.args.reasonFilter, stream=True) + if response is None: + self.client.logger.debug("No response") + return if response.status != 200: - logging.error("Error %d" % response.status) + self.client.logger.error("Error %d" % response.status) return data = json_stream.load(response) changes = data['changes']