examples/conversationbot2.py: Use context.error in error() (#1474)

This commit is contained in:
Zhuoyun Wei 2019-08-23 23:24:20 +08:00 committed by Noam Meltzer
parent 316d046628
commit 2cb6377dab
2 changed files with 2 additions and 2 deletions

View file

@ -102,7 +102,7 @@ def done(update, context):
def error(update, context):
"""Log Errors caused by Updates."""
logger.warning('Update "%s" caused error "%s"', update, error)
logger.warning('Update "%s" caused error "%s"', update, context.error)
def main():

View file

@ -113,7 +113,7 @@ def done(update, context):
def error(update, context):
"""Log Errors caused by Updates."""
logger.warning('Update "%s" caused error "%s"', update, error)
logger.warning('Update "%s" caused error "%s"', update, context.error)
def main():