Skip to content

Commit

Permalink
Update ihatemoney/history.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alexis Métaireau <[email protected]>
  • Loading branch information
Jojo144 and almet committed Dec 26, 2024
1 parent 2f09967 commit e00c39a
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
Expand Up @@ -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)
Expand Down

0 comments on commit e00c39a

Please sign in to comment.