From dae00383720c846a31ab414c5ad609115ffefe1d Mon Sep 17 00:00:00 2001 From: Jojo144 Date: Wed, 25 Dec 2024 18:14:28 +0100 Subject: [PATCH] Workaround to avoid history bug #1324 --- ihatemoney/history.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ihatemoney/history.py b/ihatemoney/history.py index 4fed53ea7..90d6d6e51 100644 --- a/ihatemoney/history.py +++ b/ihatemoney/history.py @@ -38,7 +38,10 @@ def history_sort_key(history_item_dict): def describe_version(version_obj): """Use the base model str() function to describe a version object""" - return parent_class(type(version_obj)).__str__(version_obj) + if version_obj is None: + return "" + else: + return parent_class(type(version_obj)).__str__(version_obj) def describe_owers_change(version, human_readable_names):