diff --git a/gogdl/saves.py b/gogdl/saves.py index 9a34d0c..e019019 100644 --- a/gogdl/saves.py +++ b/gogdl/saves.py @@ -299,7 +299,7 @@ def download_file(self, file: SyncFile, retries=3): .timestamp() ) os.utime(file.absolute_path, (f_timestamp, f_timestamp)) - except ValueError: + except (ValueError, TypeError): self.logger.warning(f"Incorrect LastModified header for file {file.relative_path} {response.headers.get('X-Object-Meta-LocalLastModified')} ; Ignoring...") pass