﻿id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
8184,Milestone not start with TypeError,okamototk,Sam Bloomquist,"With trac 0.12, milestone is not started with TypeError.
Following code resolve the problem.

{{{
def get_startdate_for_milestone(db, milestone):
    cursor = db.cursor()
    cursor.execute(""SELECT started FROM milestone WHERE name = %s"", [milestone])
    row = cursor.fetchone()
-    if(row and row[0]!=0):
-        return datetime.fromtimestamp(row[0])
-    else:
-        return None
+    try:
+        if(row and row[0]!=0):
+            return datetime.fromtimestamp(row[0])
+    except TypeError:
+        pass
+    return None
}}}

",defect,new,high,ScrumBurndownPlugin,major,,,,0.12
