From 0e6862021e2a779f18677e1aa540fd003239d9d8 Mon Sep 17 00:00:00 2001 From: AuroraWright Date: Sat, 29 Mar 2025 06:23:40 +0100 Subject: [PATCH] Oops --- owocr/ocr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owocr/ocr.py b/owocr/ocr.py index 2d03f8b..6233f11 100644 --- a/owocr/ocr.py +++ b/owocr/ocr.py @@ -251,7 +251,7 @@ class GoogleLens: } try: - res = requests.post('https://lensfrontend-pa.googleapis.com/v1/crupload', data=payload, headers=headers) + res = requests.post('https://lensfrontend-pa.googleapis.com/v1/crupload', data=payload, headers=headers, timeout=20) except requests.exceptions.Timeout: return (False, 'Request timeout!') except requests.exceptions.ConnectionError: