Add missing f for fstrings in warning

This commit is contained in:
Sebastian Goscik
2022-02-21 10:41:31 +00:00
parent 61e54c3b5f
commit b2d041ff09

View File

@@ -374,7 +374,7 @@ class UnifiProtectBackup:
assert isinstance(video, bytes)
break
except (AssertionError, aiohttp.client_exceptions.ClientPayloadError) as e:
logger.warn(" Failed download attempt {x+1}, retying in 1s")
logger.warn(f" Failed download attempt {x+1}, retying in 1s")
logger.exception(e)
await asyncio.sleep(1)
else:
@@ -386,7 +386,7 @@ class UnifiProtectBackup:
await self._upload_video(video, destination)
break
except RcloneException as e:
logger.warn(" Failed upload attempt {x+1}, retying in 1s")
logger.warn(f" Failed upload attempt {x+1}, retying in 1s")
logger.exception(e)
await asyncio.sleep(1)
else: