Modify ↓
Opened 8 years ago
Closed 8 years ago
#12817 closed defect (fixed)
to_fragment() incorrectly uses only args[0] of exception if it is not a TracError
Reported by: | Jun Omae | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.14 |
Component: | general | Version: | 1.0.5 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Fix a regression in [13769], |
||
API Changes: | |||
Internal Changes: |
Description (last modified by )
refs #12815.
When ticket notification with wrong configuration, the following is shown:
Warning: The change has been saved, but an error occurred while sending notifications: 535
The following is logged in trac.log:
2017-05-23 00:25:31,680 Trac[web_ui] ERROR: Failure sending notification on change to ticket #1: SMTPAuthenticationError: (535, '5.7.8 Username and Password not accepted. Learn more at\n5.7.8 https://support.google.com/mail/?p=BadCredentials b68sm7717040pfe.18 - gsmtp')
The 535
is args[0]
of occurred SMTPAuthenticationError
.
another case:
>>> try: ... open('/notfound') ... except IOError, e: ... print(to_fragment(e)) ... 2
Attachments (0)
Change History (5)
comment:1 by , 8 years ago
Description: | modified (diff) |
---|
comment:2 by , 8 years ago
comment:4 by , 8 years ago
Milestone: | next-stable-1.0.x → 1.0.14 |
---|---|
Owner: | set to |
Status: | new → assigned |
Thanks. I push it shortly.
comment:5 by , 8 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Fixed in [15936] and merged in [15937-15938].
Note:
See TracTickets
for help on using tickets.
Proposed changes in [5949d50c7/jomae.git] but, if the exception class has custom
__str__
method and size ofargs
attribute is1
,to_fragment()
would ignore the__str__
method.