• R/O
  • SSH
  • HTTPS

shibuya-trac: Commit


Commit MetaInfo

Revision811 (tree)
Zeit2011-11-12 12:56:52
Autorkanu

Log Message

refs #26708 add exception for time tracking plugins

Ändern Zusammenfassung

Diff

--- plugins/ganttcalendarplugin/trunk/ganttcalendar/ticketgantt.py (revision 810)
+++ plugins/ganttcalendarplugin/trunk/ganttcalendar/ticketgantt.py (revision 811)
@@ -564,11 +564,13 @@
564564 component = "*"
565565 # time tracking
566566 if estimatedhours != None:
567- estimatedhours = float(estimatedhours)
567+ try: estimatedhours = float(estimatedhours)
568+ except: estimatedhours = 0.0
568569 sum_estimatedhours += estimatedhours
569570 sum_est_isNone = False
570571 if totalhours != None:
571- totalhours = float(totalhours)
572+ try: totalhours = float(totalhours)
573+ except: totalhours = 0.0
572574 sum_totalhours += totalhours
573575 else: totalhours = 0.0
574576 ticket = {'id':id, 'type':type, 'summary':summary, 'owner':owner, 'description': description, 'status':status,
Show on old repository browser