Skip to content

Commit

Permalink
fix: err repr was extreme (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jul 28, 2023
1 parent 4bfbe4d commit 4703f3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tokenlists/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,14 @@ def get_token_info(
matching_tokens = list(token_iter)
if len(matching_tokens) == 0:
raise ValueError(
f"Token with symbol '{symbol}' does not exist" f" within '{tokenlist}' token list."
f"Token with symbol '{symbol}' does not exist"
f" within '{tokenlist.name}' token list."
)

elif len(matching_tokens) > 1:
raise ValueError(
f"Multiple tokens with symbol '{symbol}'" f" found in '{tokenlist}' token list."
f"Multiple tokens with symbol '{symbol}'"
f" found in '{tokenlist.name}' token list."
)

else:
Expand Down

0 comments on commit 4703f3f

Please sign in to comment.