mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
add loaded report item only if could be created
This commit is contained in:
parent
64ef575cce
commit
46f05968bc
1 changed files with 3 additions and 2 deletions
|
|
@ -283,8 +283,9 @@ class PublisherReportHandler:
|
|||
continue
|
||||
filepath = os.path.join(report_dir, filename)
|
||||
item = PublishReportItem.from_filepath(filepath)
|
||||
reports.append(item)
|
||||
reports_by_id[item.id] = item
|
||||
if item is not None:
|
||||
reports.append(item)
|
||||
reports_by_id[item.id] = item
|
||||
|
||||
self._reports = reports
|
||||
self._reports_by_id = reports_by_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue