summaryrefslogtreecommitdiff
path: root/gitdb/db
diff options
context:
space:
mode:
authorRam Rachum <ram@rachum.com>2020-06-14 14:35:48 +0300
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-06-15 11:09:23 +0800
commit112252cef0d418fd070671e64b18558c2f2cf2f1 (patch)
treede2824755c05d2a92a0c5a710c19c97027a068d1 /gitdb/db
parente5410b4166d177f90901db4986753787d34bc48f (diff)
downloadgitdb-112252cef0d418fd070671e64b18558c2f2cf2f1.tar.gz
Fix exception causes all over the codebase
Diffstat (limited to 'gitdb/db')
-rw-r--r--gitdb/db/mem.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitdb/db/mem.py b/gitdb/db/mem.py
index 8711334..5b242e4 100644
--- a/gitdb/db/mem.py
+++ b/gitdb/db/mem.py
@@ -74,8 +74,8 @@ class MemoryDB(ObjectDBR, ObjectDBW):
# rewind stream for the next one to read
ostream.stream.seek(0)
return ostream
- except KeyError:
- raise BadObject(sha)
+ except KeyError as e:
+ raise BadObject(sha) from e
# END exception handling
def size(self):