Browse Source

fix timeout error

justheuristic 5 năm trước cách đây
mục cha
commit
5604250c0d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tesseract/utils/threading.py

+ 1 - 1
tesseract/utils/threading.py

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