Spaces:
Runtime error
Runtime error
Commit ·
a0910c0
1
Parent(s): 468712b
Fix TRAIN block + upload PDFs to API
Browse files- backend/worker/worker.py +1 -1
backend/worker/worker.py
CHANGED
|
@@ -152,7 +152,7 @@ def _process_train_label(gmail: GmailClient, s: Settings, root: Path) -> None:
|
|
| 152 |
r.raise_for_status()
|
| 153 |
print(f"[worker] uploaded pdf_id={pdf_id} to API")
|
| 154 |
except Exception as e:
|
| 155 |
-
print(f"[worker]
|
| 156 |
|
| 157 |
print(f"[worker][TRAIN] open: {trainer_link}")
|
| 158 |
|
|
|
|
| 152 |
r.raise_for_status()
|
| 153 |
print(f"[worker] uploaded pdf_id={pdf_id} to API")
|
| 154 |
except Exception as e:
|
| 155 |
+
print(f"[worker] WARN: failed to upload PDF to API: {e}")
|
| 156 |
|
| 157 |
print(f"[worker][TRAIN] open: {trainer_link}")
|
| 158 |
|