gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] gmplNbSchedule.py


From: Ian Haywood
Subject: [Gnumed-devel] gmplNbSchedule.py
Date: Mon, 6 Jan 2003 14:14:43 +1100

On Sun, 5 Jan 2003 13:46:10 +0100
Karsten Hilbert <address@hidden> wrote:

> 
> > BTW, there are still missing some files the Schedule plugin tries to
> > import (gmScheduleAllDoctorsPnl).
> gnumed/gnumed/drafts/

gmplNbSchedule.py contains this:

 def GetWidget (self, parent):
        try:
            pnl = gmScheduleAllDoctorsPnl.ScheduleAllDoctorsPnl(parent)
        except:
            print "Failed to load schedule panel"
            return None
        return pnl

This is bad: if the panel doesn't load, it throws a segmentation fault with no 
error at all.
 
Changed to this:

    def GetWidget (self, parent):
        pnl = gmScheduleAllDoctorsPnl.ScheduleAllDoctorsPnl(parent)
        return pnl

So at least we get a Python stacktrace explaining why it failed. 

Attachment: pgp1MvXvluZvC.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]