changeset 5238:758edaa61ec0

pylint flagged HeaderParseError as an Undefined variable. Fully qualify the HeaderParseError as email.errors.HeaderParseError.
author John Rouillard <rouilj@ieee.org>
date Sat, 15 Apr 2017 20:12:10 -0400
parents c643d693d91e
children 15440504fb04
files roundup/anypy/email_.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/anypy/email_.py	Sat Apr 15 19:59:26 2017 -0400
+++ b/roundup/anypy/email_.py	Sat Apr 15 20:12:10 2017 -0400
@@ -102,7 +102,7 @@
             try:
                 word = base64mime.decode(encoded_string)
             except binascii.Error:
-                raise HeaderParseError('Base64 decoding error')
+                raise email.errors.HeaderParseError('Base64 decoding error')
             else:
                 decoded_words.append((word, charset))
         else:

Roundup Issue Tracker: http://roundup-tracker.org/