Some changes with config files on Windows.

This commit is contained in:
Jeremy committed 2015-02-27 18:08:34 -07:00
1 parent 0e8b8fa66f
commit 84870bf736
3 files changed
+10 -4

No files matched your search

+6 -1
View File
@@ -171,7 +171,12 @@ def main():
host = server_config["host"]
port = int(server_config["port"])
server = Server(host, port)
server.run()
try:
server.run()
except Exception as e:
log.critical("Critical error while running the server: {}".format(e), exc_info=1)
# TODO: send exception to Sentry
return
if __name__ == '__main__':
main()