Commit 857c6ee6 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Allow to re-process published data with not matching parser.

parent cc321502
Pipeline #120216 passed with stages
in 27 minutes and 9 seconds
......@@ -929,9 +929,11 @@ class Entry(Proc):
if parser is None:
# Should only be possible if the upload is published and we have
logger.warn('no parser matches during process, not updating the entry')
logger.warn('no parser matches during process')
self.warnings = ['no matching parser found during processing']
parser = parser_dict[self.parser_name]
if parser is not None:
should_parse = True
parser_changed = self.parser_name != and parser_dict[self.parser_name].name !=
if parser_changed:
......@@ -940,6 +942,10 @@ class Entry(Proc):
'different parser matches during process, use new parser',
self.parser_name = # Parser renamed
should_parse = False
logger.error('could not determine a perser for this entry')
self.errors = ['could not determine a parser for this entry']
if should_parse:
self.set_last_status_message('Initializing metadata')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment