Skip to content

Commit

Permalink
fix timeout error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Schott committed Feb 11, 2021
1 parent 88bde45 commit 333b503
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/maestral/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import logging
from collections import deque
import concurrent.futures
from concurrent.futures import Future
from typing import Deque, Optional, List

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 333b503

Please sign in to comment.