X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=lib%2Fmudpy%2Fmisc.py;h=02db56366f31fc38facf125fda3fdf83d8acac22;hp=9e6dd994aa549167de6559468fa377d915232353;hb=305d7d93122e1802b2ef840805309627b1f38e6e;hpb=c415d839f74f63db69a33e6a75af0ccc881fadb3 diff --git a/lib/mudpy/misc.py b/lib/mudpy/misc.py index 9e6dd99..02db563 100644 --- a/lib/mudpy/misc.py +++ b/lib/mudpy/misc.py @@ -2463,14 +2463,9 @@ def excepthook(excepttype, value, tracebackdata): # try to log it, if possible try: log(message, 9) - except: - pass - - # try to write it to stderr, if possible - try: - sys.stderr.write(message) - except: - pass + except Exception as e: + # try to write it to stderr, if possible + sys.stderr.write(message + "\nException while logging...\n%s" % e) def sighook(what, where):