Exit on DBError for now
svn: r4661
This commit is contained in:
parent
1e81e32965
commit
9273ca6886
@ -1294,10 +1294,13 @@ class Gramps(GrampsDBCallback.GrampsDBCallback):
|
|||||||
except ( IOError, OSError ), msg:
|
except ( IOError, OSError ), msg:
|
||||||
ErrorDialog(_('Cannot open database'),str(msg))
|
ErrorDialog(_('Cannot open database'),str(msg))
|
||||||
return 0
|
return 0
|
||||||
|
except db.DBAccessError, msg:
|
||||||
|
ErrorDialog(_('Cannot open database'),
|
||||||
|
_('%s could not be opened.' % filename) + '\n' + msg[1])
|
||||||
except (db.DBError), msg:
|
except (db.DBError), msg:
|
||||||
ErrorDialog(_('Cannot open database'),
|
ErrorDialog(_('Cannot open database'),
|
||||||
_('%s could not be opened.' % filename) + '\n' + msg[1])
|
_('%s could not be opened.' % filename) + '\n' + msg[1])
|
||||||
return 0
|
gtk.main_quit()
|
||||||
|
|
||||||
# Undo/Redo always start with standard labels and insensitive state
|
# Undo/Redo always start with standard labels and insensitive state
|
||||||
self.undo_callback(None)
|
self.undo_callback(None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user