From d589369ea3ad3ef1168fcc4d277cba0d542fb75e Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Mon, 7 Nov 2011 20:36:00 -0500 Subject: [PATCH] catch-all exceptions and print a more colorful message --- overviewer.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/overviewer.py b/overviewer.py index ca10025..8c07cae 100755 --- a/overviewer.py +++ b/overviewer.py @@ -517,4 +517,10 @@ def list_worlds(): if __name__ == "__main__": multiprocessing.freeze_support() - main() + try: + main() + except Exception, e: + logging.exception("""An error has occurred. This may be a bug. Please let us know! +See http://docs.overviewer.org/en/latest/index.html#help + +This is the error that occurred:""")