Modify ↓
Opened 15 years ago
Closed 15 years ago
#8307 closed defect (fixed)
Fails when no pubkeys yet in keyring
| Reported by: | Rob Guttman | Owned by: | Steffen Hoffmann |
|---|---|---|---|
| Priority: | normal | Component: | AnnouncerPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Robert Corsaro | Trac Release: | 0.12 |
Description
Traceback from log:
2010-12-13 15:49:01,391 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 560, in _real_send
evt)
File "/usr/local/lib/python2.6/dist-packages/TracAnnouncer-0.12.1.dev-py2.6.egg/announcer/distributors/mail.py", line 324, in distribute
pubkey_ids = self.enigma.get_pubkey_ids(addr)
File "/usr/local/lib/python2.6/dist-packages/TracAnnouncer-0.12.1.dev-py2.6.egg/announcer/util/mail_crypto.py", line 108, in get_pubkey_ids
return pubkey_ids
UnboundLocalError: local variable 'pubkey_ids' referenced before assignment
Attachments (0)
Change History (4)
comment:1 follow-up: 2 Changed 15 years ago by
comment:2 Changed 15 years ago by
| Owner: | changed from Robert Corsaro to Steffen Hoffmann |
|---|---|
| Status: | new → assigned |
Replying to robguttman:
Moving line 95 to line 91 of
util/mail_crypto.pyfixes the problem. ![...]
Sure, silly mistake of mine. Will commit this tonight. Thanks for testing.
comment:3 Changed 15 years ago by
| Cc: | Robert Corsaro added; Steffen Hoffmann removed |
|---|
comment:4 Changed 15 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.



Moving line 95 to line 91 of
util/mail_crypto.pyfixes the problem. This is the line that should be moved: