diff --git a/tokenlists/manager.py b/tokenlists/manager.py index af4ce6f..d52bfda 100644 --- a/tokenlists/manager.py +++ b/tokenlists/manager.py @@ -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: