home · contact · privacy
Minor bug fix.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 6 Mar 2025 01:34:57 +0000 (02:34 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 6 Mar 2025 01:34:57 +0000 (02:34 +0100)
src/run.py

index 700e5db8da93f86a796f1d7a6f72c1f804012338..626757506d18a632918223250bcedefefd90a616 100755 (executable)
@@ -182,8 +182,8 @@ class DatLine(Dictable):
                      in self.comment[len(PREFIX_DEF):].split(';')]
             first_part_parts = parts[0].split(maxsplit=1)
             account_name = first_part_parts[0]
-            description = first_part_parts[1] if first_part_parts else ''
-            instructions[account_name] = description
+            desc = first_part_parts[1] if len(first_part_parts) > 0 else ''
+            instructions[account_name] = desc
         return instructions
 
     @property