Better explanation in one error message.

svn: r16822
This commit is contained in:
Peter Landgren 2011-03-13 20:39:11 +00:00
parent 84a1719a1d
commit a75b8399b0

View File

@ -911,8 +911,8 @@ class GrampsParser(UpdateCallback):
Check the version of Gramps and XML. Check the version of Gramps and XML.
""" """
if self.__gramps_version == 'unknown': if self.__gramps_version == 'unknown':
msg = _("The .gramps file you are importing does not contain the " msg = _("The .gramps file you are importing does not contain information about "
"version of Gramps with which it was produced.\n\n" "the version of Gramps with, which it was produced.\n\n"
"The file will not be imported.") "The file will not be imported.")
raise GrampsImportError(_('Import file misses Gramps version'), msg) raise GrampsImportError(_('Import file misses Gramps version'), msg)
if not re.match("\d+\.\d+\.\d+", self.__xml_version): if not re.match("\d+\.\d+\.\d+", self.__xml_version):