[cleanup] Misc
This commit is contained in:
parent
fa44802809
commit
337734d4a8
10 changed files with 13 additions and 13 deletions
|
|
@ -255,7 +255,8 @@ class FileDownloader:
|
|||
|
||||
@wrap_file_access('remove')
|
||||
def try_remove(self, filename):
|
||||
os.remove(filename)
|
||||
if os.path.isfile(filename):
|
||||
os.remove(filename)
|
||||
|
||||
@wrap_file_access('rename')
|
||||
def try_rename(self, old_filename, new_filename):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue