Commit f4c3f68d authored by Denis Bilenko's avatar Denis Bilenko

server: make sure exc_info is cleared in the callback

parent d016d6d1
...@@ -127,6 +127,7 @@ class StreamServer(BaseServer): ...@@ -127,6 +127,7 @@ class StreamServer(BaseServer):
except: except:
traceback.print_exc() traceback.print_exc()
ex = sys.exc_info()[1] ex = sys.exc_info()[1]
sys.exc_clear()
if self.is_fatal_error(ex): if self.is_fatal_error(ex):
self.kill() self.kill()
sys.stderr.write('ERROR: %s failed with %s\n' % (self, str(ex) or repr(ex))) sys.stderr.write('ERROR: %s failed with %s\n' % (self, str(ex) or repr(ex)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment