summaryrefslogtreecommitdiff
path: root/portato/gui/windows
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-02-20 12:37:15 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-02-20 12:37:15 +0100
commitf977ea843d7132f4a497fd9a48b07a0568ef64a2 (patch)
tree12c89cceeaaa65f1739c344eacef9f22b55630aa /portato/gui/windows
parent65b5395168b5eaf547e9ea2f995754f0133958c3 (diff)
downloadportato-f977ea843d7132f4a497fd9a48b07a0568ef64a2.tar.gz
portato-f977ea843d7132f4a497fd9a48b07a0568ef64a2.tar.bz2
portato-f977ea843d7132f4a497fd9a48b07a0568ef64a2.zip
Fix cat-loading error
Diffstat (limited to '')
-rw-r--r--portato/gui/windows/main.py8
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