Still Error
This commit is contained in:
1 parent
2e25089aae
commit
2437566712
1 file changed
+8
-3
@@ -155,10 +155,15 @@ def start_recount():
|
|||||||
_stop_ffmpeg_locked()
|
_stop_ffmpeg_locked()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
_http_session.post(f"{RECOUNT_API_URL}/api/reset", timeout=5)
|
resp = _http_session.post(f"{RECOUNT_API_URL}/api/reset", timeout=5)
|
||||||
|
print(f"[{datetime.now().strftime('%Y-%m-%d %H:%M:%S')}] Recount reset: {RECOUNT_API_URL}/api/reset → {resp.status_code}")
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
except Exception:
|
except requests.exceptions.Timeout:
|
||||||
pass
|
print(f"[{datetime.now().strftime('%Y-%m-%d %H:%M:%S')}] Recount reset: {RECOUNT_API_URL}/api/reset → timeout")
|
||||||
|
except requests.exceptions.ConnectionError as e:
|
||||||
|
print(f"[{datetime.now().strftime('%Y-%m-%d %H:%M:%S')}] Recount reset: {RECOUNT_API_URL}/api/reset → unreachable: {e}")
|
||||||
|
except Exception as e:
|
||||||
|
print(f"[{datetime.now().strftime('%Y-%m-%d %H:%M:%S')}] Recount reset: {RECOUNT_API_URL}/api/reset → error: {e}")
|
||||||
|
|
||||||
with _streaming_lock:
|
with _streaming_lock:
|
||||||
_current_file = mp4_path
|
_current_file = mp4_path
|
||||||
|
|||||||
Reference in new issue
Block a user