Skip to content

Commit

Permalink
Don't break client
Browse files Browse the repository at this point in the history
  • Loading branch information
liuverta committed Sep 26, 2023
1 parent d4691f6 commit 5021c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/verta/verta/registry/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ModelError(Exception):
def __init__(self, message, http_code, include_stacktrace=False):
if http_code >= 500 or http_code < 400:
raise ValueError("error codes must fall in the 4XX range")
self.message = message
self.http_code = http_code
self.message = message
self.include_stacktrace = include_stacktrace
super(ModelError, self).__init__(self.message)

0 comments on commit 5021c29

Please sign in to comment.