Skip to content

Commit

Permalink
Workaround to avoid history bug spiral-project#1324
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo144 committed Dec 25, 2024
1 parent 61ea1f5 commit dae0038
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ihatemoney/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit dae0038

Please sign in to comment.