diff options
author | Ram Rachum <ram@rachum.com> | 2020-06-14 14:35:48 +0300 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-06-15 11:09:23 +0800 |
commit | 112252cef0d418fd070671e64b18558c2f2cf2f1 (patch) | |
tree | de2824755c05d2a92a0c5a710c19c97027a068d1 /gitdb/db | |
parent | e5410b4166d177f90901db4986753787d34bc48f (diff) | |
download | gitdb-112252cef0d418fd070671e64b18558c2f2cf2f1.tar.gz |
Fix exception causes all over the codebase
Diffstat (limited to 'gitdb/db')
-rw-r--r-- | gitdb/db/mem.py | 4 |
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): |