diff --git a/frigate/util/downloader.py b/frigate/util/downloader.py index c38f8b821..6685b0bb8 100644 --- a/frigate/util/downloader.py +++ b/frigate/util/downloader.py @@ -20,7 +20,7 @@ class FileLock: self.lock_file = f"{path}.lock" # we have not acquired the lock yet so it should not exist - if (os.path.exists(self.lock_file)): + if os.path.exists(self.lock_file): try: os.remove(self.lock_file) except Exception: