summaryrefslogtreecommitdiff
path: root/git/compat.py
diff options
context:
space:
mode:
authorYaroslav Halchenko <debian@onerussian.com>2017-02-28 16:30:24 -0500
committerSebastian Thiel <byronimo@gmail.com>2017-03-01 07:09:31 +0100
commit7e8412226ffe0c046177fa6d838362bfbde60cd0 (patch)
tree2a7948b9b166a8b59c8a14dcad535e2d8505771a /git/compat.py
parent72dddc7981c90a1e844898cf9d1703f5a7a55822 (diff)
downloadgitpython-7e8412226ffe0c046177fa6d838362bfbde60cd0.tar.gz
BF: there is no exc variable, raising NotASurrogateError if that is the right thing todo
Diffstat (limited to 'git/compat.py')
-rw-r--r--git/compat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/compat.py b/git/compat.py
index a2403d69..484f2391 100644
--- a/git/compat.py
+++ b/git/compat.py
@@ -204,7 +204,7 @@ def replace_surrogate_encode(mystring):
# The following magic comes from Py3.3's Python/codecs.c file:
if not 0xD800 <= code <= 0xDCFF:
# Not a surrogate. Fail with the original exception.
- raise exc
+ raise NotASurrogateError
# mybytes = [0xe0 | (code >> 12),
# 0x80 | ((code >> 6) & 0x3f),
# 0x80 | (code & 0x3f)]