Reprocessing fails without add_matched_entries_to_published

When a published upload like apfw2NtURz2BKNzlNpib_A is re-processed with add_matched_entries_to_published = False and there are new matches, the processing fails with exception:

Traceback (most recent call last):
  File "/app/nomad/processing/base.py", line 857, in proc_task
    rv = unwrapped_func(proc, *args, **kwargs)
  File "/app/nomad/processing/data.py", line 1497, in process_upload
    return self._process_upload_local(file_operations, reprocess_settings, path_filter, only_updated_files)
  File "/app/nomad/processing/data.py", line 1530, in _process_upload_local
    self.match_all(reprocess_settings, path_filter, updated_files)
  File "/app/nomad/processing/data.py", line 1807, in match_all
    old_entries.remove(entry.entry_id)
AttributeError: 'NoneType' object has no attribute 'entry_id'
Assignee Loading
Time tracking Loading