From eeb1d3bc3599653f2155e57304f81a2b34b776a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Sat, 1 Jul 2023 11:16:58 +0200 Subject: [PATCH] Fix PyLint issue --- scan_to_paperless/status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan_to_paperless/status.py b/scan_to_paperless/status.py index 234ec70f..6da43531 100644 --- a/scan_to_paperless/status.py +++ b/scan_to_paperless/status.py @@ -101,7 +101,7 @@ def scan(self) -> None: ] source_folder = os.environ.get("SCAN_SOURCE_FOLDER", "/source") - for name in [n for n in self._status]: # pylint: disable=consider-using-dict-items + for name in list(self._status): if name != self._current_folder: if os.path.isdir(os.path.join(source_folder, name)): self._update_status(name)