Skip to content

Commit

Permalink
Better logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Nov 10, 2023
1 parent 371b9e5 commit a8dc05d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/npoapi/bin/npo_media_follow_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit a8dc05d

Please sign in to comment.