From 1e81e32965ab882cb601c6f9348e0e31e1fcedc1 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 23 May 2005 21:08:29 +0000 Subject: [PATCH] Catch db.DBError svn: r4660 --- gramps2/src/gramps_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps2/src/gramps_main.py b/gramps2/src/gramps_main.py index bb88bfc13..3f6010bc4 100755 --- a/gramps2/src/gramps_main.py +++ b/gramps2/src/gramps_main.py @@ -1294,7 +1294,7 @@ class Gramps(GrampsDBCallback.GrampsDBCallback): except ( IOError, OSError ), msg: ErrorDialog(_('Cannot open database'),str(msg)) return 0 - except (db.DBAccessError,DBRunRecoveryError), msg: + except (db.DBError), msg: ErrorDialog(_('Cannot open database'), _('%s could not be opened.' % filename) + '\n' + msg[1]) return 0