diff --git a/balena/exceptions.py b/balena/exceptions.py index cf57016..5443740 100644 --- a/balena/exceptions.py +++ b/balena/exceptions.py @@ -185,7 +185,8 @@ def __init__(self, body, status_code=None): self.message = Message.REQUEST_ERROR.format(body=body) self.body = body self.status_code = status_code - print(self.message, status_code) + if status_code >= 500: + print(self.message, status_code) class NotLoggedIn(BalenaException):