Changeset 61


Ignore:
Timestamp:
03/28/06 12:12:46 (17 years ago)
Author:
bas
Message:

EmailtoTracScript?:

email2trac.py.in:

  • Fixed a small bug if default component owner is unknown. Just fill in bogus info.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • emailtotracscript/trunk/email2trac.py.in

    r59 r61  
    239239                sql = "SELECT owner FROM component WHERE name='%s'" % ticket['component']
    240240                cursor.execute(sql)
    241                 ticket['owner'] = cursor.fetchone()[0]
    242 
     241                try:
     242                        ticket['owner'] = cursor.fetchone()[0]
     243                except TypeError, detail:
     244                        ticket['owner'] = "UNKNOWN"
    243245
    244246        def set_reply_fields(self, ticket, message):
Note: See TracChangeset for help on using the changeset viewer.