diff --git a/src/GrampsDbUtils/_GedcomParse.py b/src/GrampsDbUtils/_GedcomParse.py index 3f4692e76..a618dfb74 100644 --- a/src/GrampsDbUtils/_GedcomParse.py +++ b/src/GrampsDbUtils/_GedcomParse.py @@ -3630,7 +3630,7 @@ class GedcomParser(UpdateCallback): @type state: CurrentState """ (file_ok, filename) = self.find_file(line.data, self.dir_path) - if media != URL: + if state.media != URL: if not file_ok: self.warn(_("Could not import %s") % filename[0]) path = filename[0].replace('\\', os.path.sep)