Skip to content
This repository has been archived by the owner on Dec 29, 2019. It is now read-only.

Commit

Permalink
Add missing reply due to failed request
Browse files Browse the repository at this point in the history
  • Loading branch information
MaanuelMM committed Jul 18, 2019
1 parent a775e6f commit 97738e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ def send_parada(message):
del arrive_stop
except Exception as e:
logger.error(e, exc_info=True)
bot.reply_to(message, data.REQUEST_FAIL)
else:
bot.reply_to(message, data.PARADA_BAD_SPECIFIED)
del text
Expand All @@ -291,6 +292,7 @@ def send_bicimad(message):
del bicimad
except Exception as e:
logger.error(e, exc_info=True)
bot.reply_to(message, data.REQUEST_FAIL)
else:
bot.reply_to(message, data.BICIMAD_BAD_SPECIFIED)
del text
Expand All @@ -304,6 +306,7 @@ def send_parkings(message):
process_parkings_response(get_parkings_clean()))
except Exception as e:
logger.error(e, exc_info=True)
bot.reply_to(message, data.REQUEST_FAIL)


# Help command handler
Expand Down

0 comments on commit 97738e0

Please sign in to comment.