diff --git a/openpype/tools/publisher/publish_report_viewer/widgets.py b/openpype/tools/publisher/publish_report_viewer/widgets.py index 0b17efb614..fd226ea0e4 100644 --- a/openpype/tools/publisher/publish_report_viewer/widgets.py +++ b/openpype/tools/publisher/publish_report_viewer/widgets.py @@ -253,6 +253,7 @@ class DetailsPopup(QtWidgets.QDialog): self._center_widget = center_widget self._first_show = True + self._layout = layout def showEvent(self, event): layout = self.layout() diff --git a/openpype/tools/publisher/publish_report_viewer/window.py b/openpype/tools/publisher/publish_report_viewer/window.py index 8ca075e4d2..678884677c 100644 --- a/openpype/tools/publisher/publish_report_viewer/window.py +++ b/openpype/tools/publisher/publish_report_viewer/window.py @@ -123,12 +123,12 @@ class LoadedFilesMopdel(QtGui.QStandardItemModel): return new_items = [] - for filepath in filtered_paths: + for normalized_path in filtered_paths: try: with open(normalized_path, "r") as stream: data = json.load(stream) report = PublishReport(data) - except Exception as exc: + except Exception: # TODO handle errors continue diff --git a/openpype/tools/traypublisher/window.py b/openpype/tools/traypublisher/window.py index fc9493be0a..53f8ca450a 100644 --- a/openpype/tools/traypublisher/window.py +++ b/openpype/tools/traypublisher/window.py @@ -13,7 +13,6 @@ from avalon.api import AvalonMongoDB from openpype.hosts.traypublisher import ( api as traypublisher ) -from openpype.hosts.traypublisher.api.pipeline import HostContext from openpype.tools.publisher import PublisherWindow from openpype.tools.utils.constants import PROJECT_NAME_ROLE from openpype.tools.utils.models import (