Skip to content

Commit

Permalink
client: add apikey to error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Oct 17, 2024
1 parent 25c042e commit b8110af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpcontribs-client/mpcontribs/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ def __init__(
if not apikey:
apikey = os.environ.get("MPCONTRIBS_API_KEY", SETTINGS.get("PMG_MAPI_KEY"))
if len(apikey) != 32:
raise MPContribsClientError("Invalid API key.")
raise MPContribsClientError(f"Invalid API key: {apikey}")

if apikey and headers:
apikey = None
Expand Down

0 comments on commit b8110af

Please sign in to comment.