Handle file open failure
svn: r35
This commit is contained in:
1 parent
5462c5fede
commit
3f28da37f3
1 file changed
+4
-1
@@ -119,7 +119,10 @@ class AncestorReport:
|
||||
para.set_first_indent(-0.75)
|
||||
para.set_left_margin(1.0)
|
||||
self.doc.add_style("ListEntry",para)
|
||||
self.doc.open(output)
|
||||
try:
|
||||
self.doc.open(output)
|
||||
except IOError,msg:
|
||||
GnomeErrorDialog("Could not open %s\n%s",msg)
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user