NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix exports migration when there is none (#14761)
Felipe Santos9755fa05376c
diff --git a/frigate/util/config.py b/frigate/util/config.pyindex a9a9666d95..3f3c45aa6b 100644--- a/frigate/util/config.py+++ b/frigate/util/config.py@@ -50,14 +50,15 @@ def migrate_frigate_config(config_file: str):previous_version = "0.14"logger.info("Migrating export file names...")- for file in os.listdir(EXPORT_DIR):- if "@" not in file:- continue-- new_name = file.replace("@", "_")- os.rename(- os.path.join(EXPORT_DIR, file), os.path.join(EXPORT_DIR, new_name)- )+ if os.path.isdir(EXPORT_DIR):+ for file in os.listdir(EXPORT_DIR):+ if "@" not in file:+ continue++ new_name = file.replace("@", "_")+ os.rename(+ os.path.join(EXPORT_DIR, file), os.path.join(EXPORT_DIR, new_name)+ )if previous_version < "0.15-0":logger.info(f"Migrating frigate config from {previous_version} to 0.15-0...")