[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: pcbmanager.py
User: pcjc2
Date: 06/10/05 18:37:11
Modified: . pcbmanager.py
Log:
Added exception catch around pcb_iface.GetFilename()
Revision Changes Path
1.3 +13 -5 eda/geda/xgsch2pcb/lib/xgsch2pcb/pcbmanager.py
(In the diff below, changes in quantity of whitespace are not shown.)
Index: pcbmanager.py
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/xgsch2pcb/lib/xgsch2pcb/pcbmanager.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- pcbmanager.py 5 Oct 2006 22:19:45 -0000 1.2
+++ pcbmanager.py 5 Oct 2006 22:37:11 -0000 1.3
@@ -119,7 +119,15 @@
pcb_obj = self.session_bus.get_object(pcb, '/org/seul/geda/pcb')
pcb_iface = dbus.Interface(pcb_obj, 'org.seul.geda.pcb')
+
+ ohdear = False
+ try:
filename = pcb_iface.GetFilename()
+ except:
+ print 'is_layout_open(): DEBUG Exception calling pcb_iface.GetFilename()'
+ ohdear = True
+
+ if not ohdear:
print 'is_layout_open(): DEBUG: Filename is ' + filename
if filename == os.path.abspath( self.output_name ) + ".pcb":
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs