Skip to content

Commit

Permalink
fix: add finally
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdang committed Nov 19, 2024
1 parent 4c5270d commit eed6e2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions silverback/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,10 @@ def create_payment_stream(
try:
convert(token, AddressType)
token_symbol = Contract(token).symbol()
token = accepted_tokens.get(token_symbol)
except ConversionError:
token = accepted_tokens.get(token)
token_symbol = token
finally:
token = accepted_tokens.get(token_symbol)

if token is None:
raise click.UsageError(f"Token not found in accepted tokens: {accepted_tokens}.")
Expand Down

0 comments on commit eed6e2d

Please sign in to comment.