Skip to content

Commit

Permalink
Make CAD currency code case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaaak committed Nov 4, 2015
1 parent 69f3a8e commit bd6b4c6
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 bd6b4c6

Please sign in to comment.