From 64e55d399e3f39360b00bea2bb9bbc775c958b4a Mon Sep 17 00:00:00 2001 From: Jojo144 Date: Wed, 25 Dec 2024 23:21:10 +0100 Subject: [PATCH] Update ihatemoney/history.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Alexis Métaireau --- ihatemoney/history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ihatemoney/history.py b/ihatemoney/history.py index 90d6d6e5..273cffb8 100644 --- a/ihatemoney/history.py +++ b/ihatemoney/history.py @@ -38,7 +38,7 @@ def history_sort_key(history_item_dict): def describe_version(version_obj): """Use the base model str() function to describe a version object""" - if version_obj is None: + if not version_obj: return "" else: return parent_class(type(version_obj)).__str__(version_obj)