File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -495,8 +495,8 @@ def emailException(self, htmlErrMsg):
495495 # long lines. This is important because tracebacks can contain long
496496 # representations of Python data, longer than the maximum line length
497497 # that SMTP servers will accept (a typical limit is 990 bytes).
498- cs = email .charset .Charset ('utf-8' )
499- cs .body_encoding = email .charset .QP
498+ charset = email .charset .Charset ('utf-8' )
499+ charset .body_encoding = email .charset .QP
500500 message = Message ()
501501
502502 # Construct the message headers
@@ -534,11 +534,11 @@ def emailException(self, htmlErrMsg):
534534 'Content-Disposition' ,
535535 'attachment' , filename = 'WebwareErrorMsg.html' )
536536 part .set_type ('text/html' )
537- part .set_payload (htmlErrMsg , charset = cs )
537+ part .set_payload (htmlErrMsg , charset = charset )
538538 message .attach (part )
539539 else :
540540 message .set_type ('text/html' )
541- message .set_payload (htmlErrMsg , charset = cs )
541+ message .set_payload (htmlErrMsg , charset = charset )
542542
543543 # Send the message
544544 server = self .setting ('ErrorEmailServer' )
You can’t perform that action at this time.
0 commit comments