Skip to content

Commit

Permalink
Merge pull request #928 from kwaaak/patch-1
Browse files Browse the repository at this point in the history
Make CAD currency code case-insensitive
  • Loading branch information
embolalia committed Nov 14, 2015
2 parents 268236d + bd6b4c6 commit 63a0819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sopel/modules/currency.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


def get_rate(code):
if code == 'CAD':
if code.upper() == 'CAD':
return 1, 'Canadian Dollar'
elif code == 'BTC':
rates = json.loads(web.get('https://api.bitcoinaverage.com/ticker/all'))
Expand Down

0 comments on commit 63a0819

Please sign in to comment.