Skip to content

Commit

Permalink
beep boop. poopidy scoop
Browse files Browse the repository at this point in the history
  • Loading branch information
Duckle29 committed Apr 25, 2019
1 parent 41a3610 commit bac4c0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sopel/modules/currency.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
''', re.VERBOSE)
LOGGER = get_logger(__name__)
UNSUPPORTED_CURRENCY = "Sorry, {} isn't currently supported."
GENERIC_SORRY = "Sorry, I didn't understand the input."
UNRECOGNIZED_INPUT = "Sorry, I didn't understand the input."

rates_fiat_json = {}
rates_btc_json = {}
Expand Down Expand Up @@ -120,7 +120,7 @@ def get_rate(of, to):
def exchange(bot, match):
"""Show the exchange rate between two currencies"""
if not match:
bot.reply(GENERIC_SORRY)
bot.reply(UNRECOGNIZED_INPUT)
return NOLIMIT

try:
Expand All @@ -147,7 +147,7 @@ def exchange(bot, match):
try:
amount = float(amount)
except ValueError:
bot.reply(GENERIC_SORRY)
bot.reply(UNRECOGNIZED_INPUT)
except OverflowError:
bot.reply("Sorry, input amount was out of range.")

Expand Down

0 comments on commit bac4c0a

Please sign in to comment.