Modify ↓
Opened 14 years ago
Closed 8 years ago
#7974 closed defect (fixed)
UnboundLocalError: local variable 'tid' referenced before assignment with announcements from AccountManager plugin
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | AnnouncerPlugin |
Severity: | major | Keywords: | acct_mgr subscriber |
Cc: | Jan Beilicke, Ryan J Ollos, Robert Corsaro | Trac Release: | 0.12 |
Description
2010-11-02 22:31:40,402 Trac[api] ERROR: AnnouncementSystem failed. Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/TracAnnouncer-0.12.1.dev-py2.6.egg/announcer/api.py", line 536, in _real_send subscriptions = self.resolver.subscriptions(evt) File "/usr/local/lib/python2.6/dist-packages/TracAnnouncer-0.12.1.dev-py2.6.egg/announcer/api.py", line 342, in subscriptions [x for x in sp.matches(event) if x] File "/usr/local/lib/python2.6/dist-packages/TracAnnouncer-0.12.1.dev-py2.6.egg/announcer/subscribers.py", line 840, in matches klass, event.realm, self._get_target_id(event.target)) File "/usr/local/lib/python2.6/dist-packages/TracAnnouncer-0.12.1.dev-py2.6.egg/announcer/subscribers.py", line 859, in _get_target_id return tid UnboundLocalError: local variable 'tid' referenced before assignment
n.b. Plugin for AccountManager doesn’t send emails correctly even when this issue is fixed.
Attachments (0)
Change History (7)
comment:1 Changed 13 years ago by
Cc: | Jan Beilicke added; anonymous removed |
---|
comment:2 Changed 13 years ago by
Cc: | Ryan J Ollos added |
---|
comment:4 Changed 13 years ago by
Cc: | Steffen Hoffmann added |
---|
I'm finding nothing in the logs indicating what the problem might be, after apply the fix for the typo. I can maybe dig into this over the weekend.
comment:5 Changed 12 years ago by
Cc: | Robert Corsaro added; Steffen Hoffmann removed |
---|---|
Keywords: | acct_mgr subscriber added |
Owner: | changed from Robert Corsaro to Steffen Hoffmann |
Severity: | normal → major |
I can't reproduce with current trunk
code, so this suggests, that Ryan's change resolved it.
If not, I'll take care for this, after fixing some other issues as mentioned in #7977 too.
comment:6 Changed 8 years ago by
Owner: | Steffen Hoffmann deleted |
---|
comment:7 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Providing some additional information:
I have this issue when trying to reset a password:
I fixed a typo of the variable:
As the author of this ticket aready mentioned, the issue is not resolved by this fix. No mail is sent.