mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-05 23:53:30 +00:00
linter fixes
This commit is contained in:
@@ -10,10 +10,10 @@ from typing import Optional
|
||||
import aiosqlite
|
||||
import pytz
|
||||
from aiohttp.client_exceptions import ClientPayloadError
|
||||
from expiring_dict import ExpiringDict # type: ignore
|
||||
from pyunifiprotect import ProtectApiClient
|
||||
from pyunifiprotect.data.nvr import Event
|
||||
from pyunifiprotect.data.types import EventType
|
||||
from expiring_dict import ExpiringDict
|
||||
|
||||
from unifi_protect_backup.utils import (
|
||||
SubprocessException,
|
||||
@@ -122,7 +122,7 @@ class VideoDownloader:
|
||||
video = await self._download(event)
|
||||
if video is None:
|
||||
# Increment failure count
|
||||
if not event.id in self._failures:
|
||||
if event.id not in self._failures:
|
||||
self._failures[event.id] = 1
|
||||
else:
|
||||
self._failures[event.id] += 1
|
||||
|
||||
Reference in New Issue
Block a user