Changeset 126


Ignore:
Timestamp:
10/18/06 09:33:34 (16 years ago)
Author:
bas
Message:

EmailtoTracScript?:

email2trac.py.in:

  • Fixed a bug in Ticket Update, when ticket does not exists threat is as a new ticket


Location:
emailtotracscript/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • emailtotracscript/trunk/ChangeLog

    r125 r126  
    77          Reported by:  Anonymous
    88          Fixed    by:  Bas van der Vlies
     9
     10        * email2trac.py, Fixed an error in Ticket Update. When ticket
     11          does not exists, threat it like a new ticket.
    912       
    10132006-10-10
  • emailtotracscript/trunk/email2trac.py.in

    r124 r126  
    372372                        tkt.save_changes(self.db, self.author, body_text, when)
    373373                else:
    374                         tkt = Ticket(self.env, ticket_id, self.db)
     374                        try:
     375                                tkt = Ticket(self.env, ticket_id, self.db)
     376                        except TracError, detail:
     377                                return False
     378
    375379                        tkt.save_changes(self.author, body_text, when)
    376380                        tkt['id'] = ticket_id
Note: See TracChangeset for help on using the changeset viewer.