You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logging.error("Unable to get all models from Snipe-IT")
490
-
sys.exit(exit_error_message)
491
-
else:
492
-
logging.error('When we tried to retreive a list of models, Snipe-IT responded with error status code:{} - {}'.format(response.status_code, response.content))
493
-
sys.exit(exit_error_message)
494
-
else:
495
-
logging.error('When we tried to retreive a list of models, Snipe-IT responded with error status code:{} - {}'.format(response.status_code, response.content))
496
-
sys.exit(exit_error_message)
501
+
logging.error(
502
+
"When we tried to retreive a list of models, Snipe-IT responded with error status code:{} - {}".format(
503
+
response.status_code, response.content
504
+
)
505
+
)
506
+
sys.exit(exit_error_message)
497
507
498
508
# Recursive function returns all users in a Snipe-IT Instance, 100 at a time.
0 commit comments