[jToolkit-cvs] jToolkit/widgets chart.py,1.20,1.21
Brought to you by:
davidfraser,
friedelwolff
From: <dav...@us...> - 2004-02-10 09:25:38
|
Update of /cvsroot/jtoolkit/jToolkit/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28797 Modified Files: chart.py Log Message: Added exception catch to make sure the chart picture lock is released Index: chart.py =================================================================== RCS file: /cvsroot/jtoolkit/jToolkit/widgets/chart.py,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** chart.py 10 Feb 2004 09:18:01 -0000 1.20 --- chart.py 10 Feb 2004 09:22:20 -0000 1.21 *************** *** 66,71 **** def gethtml(self): gdchartLock.acquire() ! self.drawimage() ! img = self.getimagefromtempfile() gdchartLock.release() return img --- 66,76 ---- def gethtml(self): gdchartLock.acquire() ! try: ! self.drawimage() ! img = self.getimagefromtempfile() ! except: ! print "Unexpected Error:",sys.exc_info()[2] ! gdchartLock.release() ! return None gdchartLock.release() return img |