[http] fix -> removing None output path

This commit is contained in:
Vinicius Moreira
2019-10-17 14:38:51 -03:00
parent 415f6b5ec7
commit 6cdf4f5746

View File

@@ -74,7 +74,7 @@ class AdaptableFileDownloader(FileDownloader):
success = False
ti = time.time()
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))
os.remove(output_path)
self.logger.info("Old file {} removed".format(output_path))