summaryrefslogtreecommitdiff
path: root/gitdb/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitdb/util.py')
-rw-r--r--gitdb/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitdb/util.py b/gitdb/util.py
index d680f97..c4cafec 100644
--- a/gitdb/util.py
+++ b/gitdb/util.py
@@ -326,8 +326,8 @@ class LockedFD(object):
else:
self._fd = fd
# END handle file descriptor
- except OSError:
- raise IOError("Lock at %r could not be obtained" % self._lockfilepath())
+ except OSError as e:
+ raise IOError("Lock at %r could not be obtained" % self._lockfilepath()) from e
# END handle lock retrieval
# open actual file if required