diff --git a/src/maestral/logging.py b/src/maestral/logging.py index 3765548c2..1fb908fc6 100644 --- a/src/maestral/logging.py +++ b/src/maestral/logging.py @@ -3,6 +3,7 @@ import logging from collections import deque +import concurrent.futures from concurrent.futures import Future from typing import Deque, Optional, List @@ -113,7 +114,7 @@ def wait_for_emit(self, timeout: Optional[float]) -> bool: """ try: self._emit_future.result(timeout=timeout) - except TimeoutError: + except concurrent.futures.TimeoutError: return False self._emit_future = Future() # reset future