From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 6 Mar 2025 01:34:57 +0000 (+0100)
Subject: Minor bug fix.
X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/booking/%7B%7Bprefix%7D%7D/ledger?a=commitdiff_plain;h=ed7f63199e2e5b5a2a90df7038ac5492a0494a99;p=ledgplom

Minor bug fix.
---

diff --git a/src/run.py b/src/run.py
index 700e5db..6267575 100755
--- a/src/run.py
+++ b/src/run.py
@@ -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