Skip to content

Commit ead0aac

Browse files
committed
Fix issue trying to join a PosixPath with None
`TypeError: unsupported operand type(s) for /: 'PosixPath' and 'NoneType'`
1 parent 0a2b397 commit ead0aac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

preditor/gui/group_tab_widget/group_tab_widget.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ def restore_prefs(self, prefs):
375375
missing_name = f"{group_name}/{name}"
376376
workboxes_missing_id.append(missing_name)
377377
continue
378+
else:
379+
# If only the tempfile is set, use it as the workbox_id
380+
workbox_id = Path(tempfile).stem
378381

379382
orphaned_by_instance = tab.get('orphaned_by_instance', False)
380383

0 commit comments

Comments
 (0)