diff options
| author | 2018-11-26 14:06:41 +0000 | |
|---|---|---|
| committer | 2018-11-26 14:07:01 +0000 | |
| commit | 9e8db0ec621e8a85a20840325757e29c77842d6a (patch) | |
| tree | b5eae11fe4a8d20a0b61c5a0068dcffed0553e5c | |
| parent | Don't assume a given mode is in IRCChannel.modes when we check to see if a given (diff) | |
| signature | ||
Log any unhandled (critical) exceptions that happen under `bot.run()` in
start.py
| -rwxr-xr-x | start.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -70,7 +70,12 @@ if len(server_configs): sys.stderr.write("failed to connect to '%s', exiting\r\n" % ( str(server))) sys.exit(1) - bot.run() + + try: + bot.run() + except Exception as e: + log.critical("Unhandled exception: %s", [str(e)], exc_info=True) + sys.exit(1) else: try: if utils.cli.bool_input("no servers found, add one?"): |
