DlistUtils.py crashes when email address in DB is not in .pck file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Systers-mailman |
New
|
High
|
kanika vats |
Bug Description
There was a bug that we haven't cleaned up the data for (the bug is fixed), where there can be items in the SQL database that do not have a corresponding entry in the mailman .pck file for the list. When one of those is searched for to send email to (based on whether they are a digest subscriber or not), you get the following traceback
Dec 06 17:47:44 2009 (32321) Uncaught runner exception: global name 'command' i
s not defined
Dec 06 17:47:44 2009 (32321) Traceback (most recent call last):
File "/usr/local/
self.
File "/usr/local/
keepqueued = self._dispose(
File "/usr/local/
ose
more = self._dopipelin
File "/usr/local/
peline
sys.
File "/usr/local/
thread.
File "/usr/local/
result = f(self,*args)
File "/usr/local/
self.
File "/usr/local/
s
returnList = GetEmailAddress
File "/usr/local/
syslog('error', 'User name was found through this query: ' + command);
NameError: global name 'command' is not defined
The problem seems to be that the syslog entry was changed to use the "command" variable (which is used in a variety of places where SQL database commands are created), but the database is not used here. The fix is probably to revert to the error message directly above line 720 in DlistUtils.py, which is commented out.
This seems to be related to the STORM code, so I am assigning this to Kanika Vats