fixed formatting for linter

This commit is contained in:
David Kennedy 2023-09-26 10:33:29 -04:00
parent 74c7e6528f
commit a15dec1968
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -70,7 +70,7 @@ class RegistryError(Exception):
# connection errors have error code of None and [Errno 99] in the err message # connection errors have error code of None and [Errno 99] in the err message
def is_connection_error(self): def is_connection_error(self):
return self.code is None return self.code is None
def is_session_error(self): def is_session_error(self):
return self.code is not None and (self.code >= 2501 and self.code <= 2502) return self.code is not None and (self.code >= 2501 and self.code <= 2502)