DivYonko commited on
Commit ·
eede559
1
Parent(s): da46886
fix: use pytchat interruptable=False for thread safety
Browse files
app.py
CHANGED
|
@@ -108,7 +108,7 @@ def _scraper_thread_fn(video_id: str, redis_key: str, stop_event: threading.Even
|
|
| 108 |
|
| 109 |
logger.info("Scraper thread starting — video=%s key=%s", video_id, redis_key)
|
| 110 |
try:
|
| 111 |
-
chat = pytchat.create(video_id=video_id)
|
| 112 |
except Exception as exc:
|
| 113 |
logger.error("pytchat.create failed: %s", exc)
|
| 114 |
return
|
|
|
|
| 108 |
|
| 109 |
logger.info("Scraper thread starting — video=%s key=%s", video_id, redis_key)
|
| 110 |
try:
|
| 111 |
+
chat = pytchat.create(video_id=video_id, interruptable=False)
|
| 112 |
except Exception as exc:
|
| 113 |
logger.error("pytchat.create failed: %s", exc)
|
| 114 |
return
|