summaryrefslogtreecommitdiff
path: root/git/db.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/db.py')
-rw-r--r--git/db.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/db.py b/git/db.py
index 9b334528..de2e9991 100644
--- a/git/db.py
+++ b/git/db.py
@@ -53,8 +53,8 @@ class GitCmdObjectDB(LooseObjectDB):
try:
hexsha, _typename, _size = self._git.get_object_header(partial_hexsha)
return hex_to_bin(hexsha)
- except (GitCommandError, ValueError):
- raise BadObject(partial_hexsha)
+ except (GitCommandError, ValueError) as e:
+ raise BadObject(partial_hexsha) from e
# END handle exceptions
#} END interface