debugging a shutdown issue

This commit is contained in:
Noah Levitt 2019-02-27 12:36:35 -08:00
parent adca46427d
commit c70bf2e2b9
2 changed files with 6 additions and 2 deletions

View File

@ -41,7 +41,7 @@ except:
setuptools.setup(
name='warcprox',
version='2.4b7.dev196',
version='2.4b7.dev197',
description='WARC writing MITM HTTP/S proxy',
url='https://github.com/internetarchive/warcprox',
author='Noah Levitt',

View File

@ -316,7 +316,11 @@ def main(argv=None):
# SIGQUIT does not exist on some platforms (windows)
pass
controller.run_until_shutdown()
try:
controller.run_until_shutdown()
except:
logging.fatal('unhandled exception in controller', exc_info=True)
sys.exit(1)
def ensure_rethinkdb_tables(argv=None):
'''