Skip to content

Commit

Permalink
currency: fix try/except fall-through
Browse files Browse the repository at this point in the history
  • Loading branch information
Duckle29 committed May 30, 2019
1 parent 95d3bcb commit 90defb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sopel/modules/currency.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,10 @@ def exchange(bot, match):
amount = float(amount)
except ValueError:
bot.reply(UNRECOGNIZED_INPUT)
return NOLIMIT
except OverflowError:
bot.reply("Sorry, input amount was out of range.")
return NOLIMIT

if not amount:
bot.reply("Zero is zero, no matter what country you're in.")
Expand Down

0 comments on commit 90defb3

Please sign in to comment.