mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
skip empty filepaths
This commit is contained in:
parent
dbe643e410
commit
8b06aa590a
1 changed files with 3 additions and 0 deletions
|
|
@ -379,6 +379,9 @@ class PublishFilesModel(QtGui.QStandardItemModel):
|
|||
items_to_remove = set(self._items_by_id.keys())
|
||||
for item in self._get_workfie_representations():
|
||||
filepath, repre_id = item
|
||||
# TODO handle empty filepaths
|
||||
if not filepath:
|
||||
continue
|
||||
filename = os.path.basename(filepath)
|
||||
|
||||
if repre_id in items_to_remove:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue