Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
  • Loading branch information
harupy committed Dec 16, 2021
1 parent c4ed98f commit 30473e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mlflow/exceptions.py
Expand Up @@ -67,10 +67,11 @@ class RestException(MlflowException):
"""Exception thrown on non 200-level responses from the REST API"""

def __init__(self, json):
print(json, type(json))
try:
error_code = json.get("error_code", ErrorCode.Name(INTERNAL_ERROR))
except Exception as e:
raise Exception(json) from e
raise Exception(json, type(json)) from e
message = "%s: %s" % (
error_code,
json["message"] if "message" in json else "Response: " + str(json),
Expand Down

0 comments on commit 30473e2

Please sign in to comment.