Modify

Opened 6 years ago

Closed 4 years ago

#2965 closed defect (fixed)

plugin throws error on YAML detail.message

Reported by: kdebisschop Owned by: rjollos
Priority: normal Component: GanttChartPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by rjollos)

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/
     
    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 kdebisschop 6 years ago.
svn diff file

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by kdebisschop

svn diff file

comment:1 Changed 4 years ago by rjollos

  • Description modified (diff)
  • Owner changed from malsmith to rjollos
  • Status changed from new to assigned

comment:2 Changed 4 years ago by rjollos

  • Resolution set to fixed
  • Status changed from assigned to closed

Patch applied in #7129.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from rjollos. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.