diff options
Diffstat (limited to 'portato/gui/windows')
-rw-r--r-- | portato/gui/windows/main.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py index 04a9995..793d1b6 100644 --- a/portato/gui/windows/main.py +++ b/portato/gui/windows/main.py @@ -1220,10 +1220,10 @@ class MainWindow (Window): if name: if self.cfg.get_boolean("collapseCats", "GUI"): - try: - sname = name.split("-", 1) - except ValueError: # nothing to split - sname = None + sname = name.split("-", 1) + + if len(sname) < 2: + sname = None else: sname = None |