From 9298703d3e2fd5c832c27fafb826ac32e45258b5 Mon Sep 17 00:00:00 2001 From: Evgeny Arshinov Date: Wed, 27 Mar 2024 17:25:22 +0100 Subject: [PATCH] ignore_permission_denied --- pyproject.toml | 2 +- src/django_watchfiles/__init__.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f886063..d4ca547 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ classifiers = [ ] dependencies = [ "Django>=3.2", - "watchfiles", + "watchfiles>=0.20", ] urls = {Changelog = "https://github.com/adamchainz/django-watchfiles/blob/main/CHANGELOG.rst",Funding = "https://adamj.eu/books/",Repository = "https://github.com/adamchainz/django-watchfiles"} diff --git a/src/django_watchfiles/__init__.py b/src/django_watchfiles/__init__.py index 2c05d6e..08a1b87 100644 --- a/src/django_watchfiles/__init__.py +++ b/src/django_watchfiles/__init__.py @@ -44,6 +44,7 @@ def __iter__(self) -> Generator[Any, None, None]: # TODO: better type debounce=False, rust_timeout=100, yield_on_timeout=True, + ignore_permission_denied=True, ): if self.change_event.is_set(): break