Skip to content

Commit

Permalink
fixes None in acheivement
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Jan 12, 2024
1 parent 8aee376 commit 4b09ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dcm/dcm_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ def generate_svg_markup(
# check learner achievements
if learner:
achievement=learner.achievements_by_path.get(facet.path,None)
if achievement.level:
if achievement and achievement.level:
facet_config.element_class="selected"

svg.add_donut_segment(
Expand Down

0 comments on commit 4b09ca3

Please sign in to comment.