Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ihatemoney/history.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
Jojo144 and almet authored Dec 25, 2024
1 parent dae0038 commit 64e55d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ihatemoney/history.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 64e55d3

Please sign in to comment.