diff --git a/processors/visualisation/download_images.py b/processors/visualisation/download_images.py index c13fd0fca..8b0792e22 100644 --- a/processors/visualisation/download_images.py +++ b/processors/visualisation/download_images.py @@ -574,6 +574,10 @@ def request_get_w_error_handling(self, url, retries=0, **kwargs): else: self.dataset.log("Error: ConnectionError while trying to download image %s: %s" % (url, e)) raise FileNotFoundError() + except requests.exceptions.LocationParseError as e: + # not an valid url, just skip + self.dataset.log("Error: LocationParseError while trying to download image %s: %s" % (url, e)) + raise FileNotFoundError() except requests.exceptions.InvalidSchema: # not an http url, just skip raise FileNotFoundError()