Skip to content

Commit

Permalink
Fix #1748 - Use get_tokens to avoid var out of scope issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeacom committed Jul 15, 2018
1 parent 01086de commit 2325aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/dashboard/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def addr_to_token(addr):


def token_by_name(name):
for token in tokens:
for token in get_tokens():
if token['name'].lower() == name.lower():
return token
return False

0 comments on commit 2325aa7

Please sign in to comment.