Merge pull request #291 from t2bot/travis/error-reporting

Log startup exceptions
This commit is contained in:
Tulir Asokan
2019-03-10 13:08:48 +02:00
committed by GitHub
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -1,6 +1,7 @@
.idea/
.venv
env/
pip-selfcheck.json
*.pyc
__pycache__
+3
View File
@@ -150,3 +150,6 @@ with appserv.run(config["appservice.hostname"], config["appservice.port"]) as st
asyncio.gather(*[user.stop() for user in User.by_tgid.values()], loop=loop))
log.debug("Clients stopped, shutting down")
sys.exit(0)
except Exception as e:
log.exception("Unexpected error")
sys.exit(1)