Modify ↓
Opened 17 years ago
Closed 14 years ago
#2965 closed defect (fixed)
plugin throws error on YAML detail.message
Reported by: | Karl DeBisschop | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | GanttChartPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description (last modified by )
The detail from YAML did not include a message attribute, so I could not diagnose the ultimate error.
[udebika@usbost-fenservi trac-hacks]$ svn diff
-
ganttchartplugin/0.11/gantt/gantt.py
ganttchartplugin/0.11/
201 201 mstart,mend = self.process_dates(data) 202 202 self.draw_chart(data,mstart,mend,img_path,80,20,False) 203 203 except yaml.YAMLError, detail : 204 msg = "Data Loading Error: " + detail.message 204 msg = "Data Loading Error: " 205 if hasattr(detail, 'message'): 206 msg = msg + detail.message 205 207 if hasattr(detail, 'problem_mark'): 206 208 mark = detail.problem_mark 207 209 msg = msg + "<br />Error position: (%s:%s)" % (mark.line+1, mark.column+1)
Attachments (1)
Change History (3)
Changed 17 years ago by
Attachment: | gantt.diff added |
---|
comment:1 Changed 14 years ago by
Description: | modified (diff) |
---|---|
Owner: | changed from malsmith to Ryan J Ollos |
Status: | new → assigned |
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Patch applied in #7129.
Note: See
TracTickets for help on using
tickets.
svn diff file