Skip to content

Commit 4703f3f

Browse files
authored
fix: err repr was extreme (#35)
1 parent 4bfbe4d commit 4703f3f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tokenlists/manager.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,14 @@ def get_token_info(
115115
matching_tokens = list(token_iter)
116116
if len(matching_tokens) == 0:
117117
raise ValueError(
118-
f"Token with symbol '{symbol}' does not exist" f" within '{tokenlist}' token list."
118+
f"Token with symbol '{symbol}' does not exist"
119+
f" within '{tokenlist.name}' token list."
119120
)
120121

121122
elif len(matching_tokens) > 1:
122123
raise ValueError(
123-
f"Multiple tokens with symbol '{symbol}'" f" found in '{tokenlist}' token list."
124+
f"Multiple tokens with symbol '{symbol}'"
125+
f" found in '{tokenlist.name}' token list."
124126
)
125127

126128
else:

0 commit comments

Comments
 (0)