Skip to content

Commit

Permalink
AsyncioEventLoop patch: Don't rely on self._exc_info to exist
Browse files Browse the repository at this point in the history
This may fix #232.
  • Loading branch information
rndusr committed May 5, 2023
1 parent a87d40a commit 50e827b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stig/tui/urwidpatches.py
Expand Up @@ -190,7 +190,7 @@ def _exception_handler(self, loop, context):
def run(self):
self._loop.set_exception_handler(self._exception_handler)
self._loop.run_forever()
if self._exc_info:
if getattr(self, '_exc_info', None):
raise self._exc_info

_patched_classes['AsyncioEventLoop'] = AsyncioEventLoop_patched
Expand Down

0 comments on commit 50e827b

Please sign in to comment.