We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5d3d7e commit e5410b4Copy full SHA for e5410b4
gitdb/db/loose.py
@@ -138,12 +138,12 @@ def _map_loose_object(self, sha):
138
# try again without noatime
139
try:
140
return file_contents_ro_filepath(db_path)
141
- except OSError:
142
- raise BadObject(sha)
+ except OSError as new_e:
+ raise BadObject(sha) from new_e
143
# didn't work because of our flag, don't try it again
144
self._fd_open_flags = 0
145
else:
146
+ raise BadObject(sha) from e
147
# END handle error
148
# END exception handling
149
0 commit comments