Beispiel #1
0
 def wrapped_done(future: Future) -> None:
     assert mw
     mw._decrease_background_ops()
     # did something go wrong?
     if exception := future.exception():
         if isinstance(exception, Exception):
             if self._failure:
                 self._failure(exception)
             else:
                 showWarning(str(exception), self._parent)
             return
         else:
             # BaseException like SystemExit; rethrow it
             future.result()