Update ihatemoney/history.py

Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
This commit is contained in:
Jojo144 2024-12-25 23:21:10 +01:00 committed by GitHub
parent dae0038372
commit 64e55d399e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,7 @@ def history_sort_key(history_item_dict):
def describe_version(version_obj): def describe_version(version_obj):
"""Use the base model str() function to describe a version object""" """Use the base model str() function to describe a version object"""
if version_obj is None: if not version_obj:
return "" return ""
else: else:
return parent_class(type(version_obj)).__str__(version_obj) return parent_class(type(version_obj)).__str__(version_obj)