Opened 10 years ago

Closed 8 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 Ryan J Ollos)

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/

    201201            mstart,mend = self.process_dates(data)
    202202            self.draw_chart(data,mstart,mend,img_path,80,20,False)
    203203        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
    205207            if hasattr(detail, 'problem_mark'):
    206208                mark = detail.problem_mark
    207209                msg = msg + "<br />Error position: (%s:%s)" % (mark.line+1, mark.column+1)

Attachments (1)

gantt.diff (810 bytes) - added by Karl DeBisschop 10 years ago.
svn diff file

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by Karl DeBisschop

Attachment: gantt.diff added

svn diff file

comment:1 Changed 8 years ago by Ryan J Ollos

Description: modified (diff)
Owner: changed from malsmith to Ryan J Ollos
Status: newassigned

comment:2 Changed 8 years ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

Patch applied in #7129.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.