plan291037 commited on
Commit
8f036c1
·
verified ·
1 Parent(s): 6c1b536

Update app/lens_images_core.py

Browse files
Files changed (1) hide show
  1. app/lens_images_core.py +3 -1
app/lens_images_core.py CHANGED
@@ -14,7 +14,9 @@ if not LOGGER.handlers:
14
  format="%(asctime)s | %(levelname)s | %(name)s | %(message)s",
15
  )
16
 
17
- COOKIE_JSON_URL = os.getenv("COOKIE_JSON_URL", "")
 
 
18
  UA = "Mozilla/5.0 (Lens OCR Images)"
19
 
20
  _COMMON_CHROME_PATHS = [
 
14
  format="%(asctime)s | %(levelname)s | %(name)s | %(message)s",
15
  )
16
 
17
+ COOKIE_JSON_URL = os.getenv("COOKIE_JSON_URL")
18
+ if not COOKIE_JSON_URL:
19
+ raise RuntimeError("Missing COOKIE_JSON_URL secret. Set it in Space Settings > Secrets.")
20
  UA = "Mozilla/5.0 (Lens OCR Images)"
21
 
22
  _COMMON_CHROME_PATHS = [