From 3915556a093c013807e4d29e6cd94156f48e35aa Mon Sep 17 00:00:00 2001 From: Feramance Date: Thu, 10 Oct 2024 16:32:50 +0200 Subject: [PATCH] Change from pathlib to os call --- qBitrr/arss.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index a0ff129e..e1ae390e 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -3,6 +3,7 @@ import contextlib import itertools import logging +import os import pathlib import re import shutil @@ -101,7 +102,7 @@ def __init__( if pathlib.Path(logfile).is_file(): logold = logs_folder.joinpath(self._name + ".log.old") try: - logold.unlink() + os.remove(logold) except FileNotFoundError: pass logfile.rename(logold)