Skip to content

Commit 71d0132

Browse files
committed
pylint flagged HeaderParseError as an Undefined variable.
Fully qualify the HeaderParseError as email.errors.HeaderParseError.
1 parent 043cd05 commit 71d0132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/anypy/email_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def decode_header(header):
102102
try:
103103
word = base64mime.decode(encoded_string)
104104
except binascii.Error:
105-
raise HeaderParseError('Base64 decoding error')
105+
raise email.errors.HeaderParseError('Base64 decoding error')
106106
else:
107107
decoded_words.append((word, charset))
108108
else:

0 commit comments

Comments
 (0)