From 504fe066aa9c16a07d6d2c3512516f3ae5a1a91e Mon Sep 17 00:00:00 2001 From: Feramance Date: Thu, 10 Oct 2024 15:45:29 +0200 Subject: [PATCH] [patch] Windows log files fixes --- qBitrr/arss.py | 2 +- requirements.all.txt | 1 - requirements.dev.txt | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index ea66eb94..41050570 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -100,7 +100,7 @@ def __init__( logfile = logs_folder.joinpath(self._name + ".log") if pathlib.Path(logfile).is_file(): logold = logs_folder.joinpath(self._name + ".log.old") - if pathlib.Path(logold).is_file(): + if pathlib.Path(logold).exists(): logold.unlink() logfile.rename(logold) fh = logging.FileHandler(logfile) diff --git a/requirements.all.txt b/requirements.all.txt index 70631c4e..715903f6 100644 --- a/requirements.all.txt +++ b/requirements.all.txt @@ -79,7 +79,6 @@ jaraco-functools==4.1.0 # keyring keyring==25.4.1 # via twine -mkdocs==1.6.1 more-itertools==10.5.0 # via # jaraco-classes diff --git a/requirements.dev.txt b/requirements.dev.txt index 855bac34..96b3c499 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -79,7 +79,6 @@ jaraco-functools==4.1.0 # keyring keyring==25.4.1 # via twine -mkdocs==1.6.1 more-itertools==10.5.0 # via # jaraco-classes