[cairo-commit] pycairo/examples/svg svgview.py,1.6,1.7

Steve Chaplin commit at pdx.freedesktop.org
Fri May 20 04:07:33 PDT 2005


Committed by: stevech1097

Update of /cvs/cairo/pycairo/examples/svg
In directory gabe:/tmp/cvs-serv19127/examples/svg

Modified Files:
	svgview.py 
Log Message:
SC

Index: svgview.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/svg/svgview.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- svgview.py	20 May 2005 08:57:44 -0000	1.6
+++ svgview.py	20 May 2005 11:07:31 -0000	1.7
@@ -137,8 +137,9 @@
         self.svg = cairo.svg.Context()
         try:
             self.svg.parse (filename)
-        except Exception, exc:
-            print exc
+        except cairo.svg.Error:
+            exc_type, exc_value = sys.exc_info()[:2] 
+            print >>sys.stderr, '%s: %s' % (exc_type, exc_value)
 
         else:
             if self.af is None:




More information about the cairo-commit mailing list