diff --git a/qBitrr/arss.py b/qBitrr/arss.py index 244ee0d4..4994d02b 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -103,6 +103,8 @@ 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(): + logold.unlink() logfile.rename(logold) fh = logging.FileHandler(logfile) self.logger.addHandler(fh)