mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 14:24:15 +02:00
[http] fix -> removing None output path
This commit is contained in:
@@ -74,7 +74,7 @@ class AdaptableFileDownloader(FileDownloader):
|
|||||||
success = False
|
success = False
|
||||||
ti = time.time()
|
ti = time.time()
|
||||||
try:
|
try:
|
||||||
if os.path.exists(output_path):
|
if output_path and os.path.exists(output_path):
|
||||||
self.logger.info('Removing old file found before downloading: {}'.format(output_path))
|
self.logger.info('Removing old file found before downloading: {}'.format(output_path))
|
||||||
os.remove(output_path)
|
os.remove(output_path)
|
||||||
self.logger.info("Old file {} removed".format(output_path))
|
self.logger.info("Old file {} removed".format(output_path))
|
||||||
|
|||||||
Reference in New Issue
Block a user