Skip to content

Commit

Permalink
Fix a bug when actual/normal_dots was None
Browse files Browse the repository at this point in the history
  • Loading branch information
leleogere committed Feb 13, 2025
1 parent 419b2e4 commit 200548f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions partitura/score.py
Original file line number Diff line number Diff line change
Expand Up @@ -2510,10 +2510,12 @@ def __str__(self):
if self.normal_type is None
else "normal_type={}".format(self.normal_type)
)
for _ in range(self.actual_dots):
t_actual += "."
for _ in range(self.normal_dots):
t_normal += "."
if self.actual_dots:
for _ in range(self.actual_dots):
t_actual += "."
if self.normal_dots:
for _ in range(self.normal_dots):
t_normal += "."
start = "" if self.start_note is None else "start={}".format(self.start_note.id)
end = "" if self.end_note is None else "end={}".format(self.end_note.id)
return " ".join(
Expand Down

0 comments on commit 200548f

Please sign in to comment.