Handle file open failure

svn: r35
This commit is contained in:
Don Allingham 2001-05-19 04:04:19 +00:00
parent ad9d2365e1
commit 35e2ac0111

View File

@ -119,7 +119,10 @@ class AncestorReport:
para.set_first_indent(-0.75) para.set_first_indent(-0.75)
para.set_left_margin(1.0) para.set_left_margin(1.0)
self.doc.add_style("ListEntry",para) self.doc.add_style("ListEntry",para)
try:
self.doc.open(output) self.doc.open(output)
except IOError,msg:
GnomeErrorDialog("Could not open %s\n%s",msg)
#-------------------------------------------------------------------- #--------------------------------------------------------------------
# #