Remove legacy code

This commit is contained in:
Roy Nieterau 2024-09-23 14:42:01 +02:00
parent d00fa72892
commit cd5303ef7b

View file

@ -267,17 +267,11 @@ class DeliveryOptionsDialog(QtWidgets.QDialog):
new_report_items, uploaded = deliver_single_file(*args) new_report_items, uploaded = deliver_single_file(*args)
report_items.update(new_report_items) report_items.update(new_report_items)
self._update_progress(uploaded) self._update_progress(uploaded)
else: # fallback for Pype2 and representations without files else:
frame = repre["context"].get("frame") raise ValueError(
if frame: "Representation entity is lacking `files`."
repre["context"]["frame"] = len(str(frame)) * "#" f" Unable to process entity: {repre}"
)
if not frame:
new_report_items, uploaded = deliver_single_file(*args)
else:
new_report_items, uploaded = deliver_sequence(*args)
report_items.update(new_report_items)
self._update_progress(uploaded)
self.text_area.setText(self._format_report(report_items)) self.text_area.setText(self._format_report(report_items))
self.text_area.setVisible(True) self.text_area.setVisible(True)