• R/O
  • SSH
  • HTTPS

shibuya-trac: Commit


Commit MetaInfo

Revision858 (tree)
Zeit2014-10-20 22:03:11
Autorjun66j5

Log Message

GanttCalendarPlugin: fixed an TypeError while comparing due_assign and due_close values (closes #34514)

Ändern Zusammenfassung

Diff

--- plugins/ganttcalendarplugin/trunk/ganttcalendar/ticketgantt.py (revision 857)
+++ plugins/ganttcalendarplugin/trunk/ganttcalendar/ticketgantt.py (revision 858)
@@ -527,13 +527,13 @@
527527 row = dict(zip(column_names, row))
528528 try:
529529 t = time.strptime(row['due_assign'], dateFormat)
530- row['due_assign'] = date(t[0],t[1],t[2])
531- except ( TracError, ValueError, TypeError):
532- row['due_assign'] = None
530+ row['due_assign'] = date(t[0], t[1], t[2])
531+ except (TracError, ValueError, TypeError):
532+ continue
533533 try:
534534 t = time.strptime(row['due_close'], dateFormat)
535- row['due_close'] = date(t[0],t[1],t[2])
536- except ( TracError, ValueError, TypeError):
535+ row['due_close'] = date(t[0], t[1], t[2])
536+ except (TracError, ValueError, TypeError):
537537 continue
538538 if row['due_assign'] > row['due_close']:
539539 continue
Show on old repository browser