Add ignore permissions errors on watchfile

This commit is contained in:
Zoe Roux 2024-04-21 02:18:10 +02:00
parent bfbc66cdc0
commit ac3b593b8b
No known key found for this signature in database

View File

@ -7,7 +7,7 @@ logger = getLogger(__name__)
async def monitor(path: str, publisher: Publisher): async def monitor(path: str, publisher: Publisher):
async for changes in awatch(path): async for changes in awatch(path, ignore_permission_denied=True):
for event, file in changes: for event, file in changes:
if event == Change.added: if event == Change.added:
await publisher.add(file) await publisher.add(file)