Skip to content

Commit

Permalink
Catch 'TypeError' too while processing cloud saves (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
arielj authored Jan 27, 2024
1 parent 6b4346a commit 2bc37a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gogdl/saves.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2bc37a6

Please sign in to comment.