Skip to content

Commit

Permalink
Change from pathlib to os call
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Oct 10, 2024
1 parent 35b6d8b commit 3915556
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import contextlib
import itertools
import logging
import os
import pathlib
import re
import shutil
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3915556

Please sign in to comment.