* src/DbPrompter.py: provide a better error message of DB open failure
* src/const.py.in: Add Martin Hawlisch and Richard Tayor to author list svn: r4300
This commit is contained in:
@@ -62,6 +62,8 @@ import WriteGrdb
|
||||
import WriteXML
|
||||
import WriteGedcom
|
||||
|
||||
from bsddb import db
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Constants
|
||||
@@ -194,9 +196,13 @@ class ExistingDbPrompter:
|
||||
try:
|
||||
if open_native(self.parent,filename,filetype):
|
||||
return True
|
||||
except:
|
||||
except db.DBInvalidArgError, msg:
|
||||
QuestionDialog.ErrorDialog(
|
||||
_("Could not open file: %s") % filename)
|
||||
_("Could not open file: %s") % filename, msg[1])
|
||||
return False
|
||||
except:
|
||||
import DisplayTrace
|
||||
DisplayTrace.DisplayTrace()
|
||||
return False
|
||||
|
||||
# The above native formats did not work, so we need to
|
||||
|
||||
@@ -144,6 +144,8 @@ comments = _("GRAMPS (Genealogical Research and Analysis "
|
||||
authors = [
|
||||
"Donald N. Allingham",
|
||||
"Alexander Roitman",
|
||||
"Richard Taylor",
|
||||
"Martin Hawlisch",
|
||||
"Tim Waugh",
|
||||
"Donald A. Peterson",
|
||||
"David Hampton",
|
||||
|
||||
Reference in New Issue
Block a user