From 6cdf4f5746a5770ceeff14f7d5f765f1ec431c1d Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Thu, 17 Oct 2019 14:38:51 -0300 Subject: [PATCH] [http] fix -> removing None output path --- bauh/view/core/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bauh/view/core/downloader.py b/bauh/view/core/downloader.py index ffad3c0b..960fc3ab 100644 --- a/bauh/view/core/downloader.py +++ b/bauh/view/core/downloader.py @@ -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))