Skip to content

Commit 6619d5d

Browse files
committed
Add timeout to scarf telemetry requests
1 parent 1a94d95 commit 6619d5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

unstructured/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ def scarf_analytics():
292292
+ "&gpu="
293293
+ str(gpu_present)
294294
+ "&dev=true",
295+
timeout=10,
295296
)
296297
else:
297298
requests.get(
@@ -306,6 +307,7 @@ def scarf_analytics():
306307
+ "&gpu="
307308
+ str(gpu_present)
308309
+ "&dev=false",
310+
timeout=10,
309311
)
310312
except Exception:
311313
pass

0 commit comments

Comments
 (0)