Use GrampsImportError in stead of GedcomError

svn: r16766
This commit is contained in:
Michiel Nauta 2011-03-06 18:43:55 +00:00
parent b10d52a3bf
commit 97b1604269

View File

@ -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."""