Skip to content

Commit

Permalink
better messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Sep 15, 2022
1 parent 4f63908 commit 96747e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/example_bot_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ def main():
settings_bot = cf.zones.bot_management.put(zone_id, data={'enable_js': enable_value})
except Exception as e:
if int(e) == 99998:
print('Exception: 99998 ignored!', file=sys.stderr)
pass
else:
exit("Exception: %d %s" % (int(e), str(e)))
exit('Exception: %d %s' % (int(e), str(e)))

settings_bot = cf.zones.bot_management.get(zone_id)
print(json.dumps(settings_bot, indent=4))
Expand Down

0 comments on commit 96747e2

Please sign in to comment.