Skip to content

Commit 51b4010

Browse files
committed
Avoid abbreviations for variable names
1 parent 642f3ec commit 51b4010

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

webware/ExceptionHandler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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')

0 commit comments

Comments
 (0)