From 3f28da37f338009211bf71b465dc3a4b3133b206 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 19 May 2001 04:04:19 +0000 Subject: [PATCH] Handle file open failure svn: r35 --- src/plugins/AncestorReport.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/AncestorReport.py b/src/plugins/AncestorReport.py index 5e5434c7f..71270b903 100644 --- a/src/plugins/AncestorReport.py +++ b/src/plugins/AncestorReport.py @@ -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) #-------------------------------------------------------------------- #