Use GrampsImportError in stead of GedcomError
svn: r16766
This commit is contained in:
parent
b10d52a3bf
commit
97b1604269
@ -90,7 +90,7 @@ def importData(database, filename, cb_progress=None):
|
||||
except EnvironmentError, msg:
|
||||
ErrorDialog(_("%s could not be opened\n") % filename, str(msg))
|
||||
return
|
||||
except Errors.GedcomError, msg:
|
||||
except Errors.GrampsImportError, msg:
|
||||
ErrorDialog(_("%s could not be opened\n") % filename, str(msg))
|
||||
return
|
||||
|
||||
@ -326,8 +326,8 @@ class VCardParser(object):
|
||||
"""Check the version of the VCard, only version 3.0 is supported."""
|
||||
self.version = data
|
||||
if self.version != "3.0":
|
||||
raise Errors.GedcomError(_("Import of VCards version %s is not "
|
||||
"supported by Gramps.") % self.version)
|
||||
raise Errors.GrampsImportError(_("Import of VCards version %s is "
|
||||
"not supported by Gramps.") % self.version)
|
||||
|
||||
def add_formatted_name(self, fields, data):
|
||||
"""Read the FN property of a VCard."""
|
||||
|
Loading…
Reference in New Issue
Block a user