We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72dddc7 commit 7e84122Copy full SHA for 7e84122
git/compat.py
@@ -204,7 +204,7 @@ def replace_surrogate_encode(mystring):
204
# The following magic comes from Py3.3's Python/codecs.c file:
205
if not 0xD800 <= code <= 0xDCFF:
206
# Not a surrogate. Fail with the original exception.
207
- raise exc
+ raise NotASurrogateError
208
# mybytes = [0xe0 | (code >> 12),
209
# 0x80 | ((code >> 6) & 0x3f),
210
# 0x80 | (code & 0x3f)]
0 commit comments