attempt at error reporting
This commit is contained in:
parent
11b2990dce
commit
bb9285d2ba
1 changed files with 2 additions and 0 deletions
2
robot.py
2
robot.py
|
@ -97,6 +97,8 @@ def start(bot, update):
|
||||||
|
|
||||||
def error(bot, update, error):
|
def error(bot, update, error):
|
||||||
logger.error(error)
|
logger.error(error)
|
||||||
|
if update is not None:
|
||||||
|
update.message.reply_text("Something is fucked: %s" % error)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in a new issue