From 85aecde453a6b4790be2ad0d2ae6537aec56265f Mon Sep 17 00:00:00 2001 From: Jinwei Zhao Date: Wed, 1 Feb 2017 21:44:38 +0800 Subject: update --- README.md | 6 ------ bot.py | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index 7797722..c597a86 100755 --- a/README.md +++ b/README.md @@ -36,9 +36,3 @@ sudo dpkg-reconfigure locales ```bash python3 bot.py ``` - -## TODO - -+ Robust error handle - -+ Use GAE OAuth instead of fetching cookie \ No newline at end of file diff --git a/bot.py b/bot.py index 10b1107..f1debb1 100755 --- a/bot.py +++ b/bot.py @@ -252,6 +252,6 @@ if __name__ == '__main__': while True: try: main() - except Exception as e: + except Exception: send_message(bot, 'Main Unexpected error' + str(sys.exc_info()[0]) + " Line: " + str(inspect.currentframe().f_lineno), True) time.sleep(3) \ No newline at end of file -- cgit v1.2.3