Explorar o código

fix timeout error

justheuristic %!s(int64=5) %!d(string=hai) anos
pai
achega
5604250c0d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tesseract/utils/threading.py

+ 1 - 1
tesseract/utils/threading.py

@@ -1,5 +1,5 @@
 import os
-from concurrent.futures import Future, ThreadPoolExecutor, as_completed
+from concurrent.futures import Future, ThreadPoolExecutor, as_completed, TimeoutError
 import time
 from typing import Optional, List