Skip to content

Commit

Permalink
Temporarily fixes None errors when replacing refs (see issue CPJKU#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
leleogere committed Oct 21, 2024
1 parent b964131 commit 688eb32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions partitura/utils/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ def replace_refs(self, o_map):
""".format(
o_el, o_el.start, o_el.end
)
)
) if o_el is not None
else "None reference found in o_map"
)
o_list_new.append(None)

Expand All @@ -258,7 +259,8 @@ def replace_refs(self, o_map):
{} start={} end={}, substituting None
""".format(
o, o.start, o.end
)
) if o is not None
else "None reference found in o_map"
)
)
o_new = None
Expand Down

0 comments on commit 688eb32

Please sign in to comment.