From 97b16042692bc50b9928130dad257d46af35726c Mon Sep 17 00:00:00 2001 From: Michiel Nauta Date: Sun, 6 Mar 2011 18:43:55 +0000 Subject: [PATCH] Use GrampsImportError in stead of GedcomError svn: r16766 --- src/plugins/import/ImportVCard.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/import/ImportVCard.py b/src/plugins/import/ImportVCard.py index 2ea351383..bdbb213d7 100644 --- a/src/plugins/import/ImportVCard.py +++ b/src/plugins/import/ImportVCard.py @@ -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."""