Skip to content

Commit

Permalink
Merge pull request #1464 from neptune-ai/jd/fix-token-expired-excepti…
Browse files Browse the repository at this point in the history
…on-arguments-error

NPT-13623 - Fix token expired exception arguments error
  • Loading branch information
jdudycz committed Sep 6, 2023
2 parents 8b6b008 + 48e0bf9 commit d6c7a24
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/neptune/common/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ def __init__(self):


class Unauthorized(NeptuneApiException):
def __init__(self):
message = """
def __init__(self, msg=None):
default_message = """
{h1}
----Unauthorized-----------------------------------------------------------------------
{end}
Expand All @@ -211,6 +211,7 @@ def __init__(self):
{correct}Need help?{end}-> https://docs.neptune.ai/getting_help
"""
message = msg if msg is not None else default_message
super().__init__(message.format(**STYLES))


Expand Down

0 comments on commit d6c7a24

Please sign in to comment.