Skip to content

Commit

Permalink
fix: tagging xblocks triggers InvalidKeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Sep 23, 2024
1 parent 5beac3f commit 16c3a95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform_plugin_aspects/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from django.db import transaction
from django.db.models.signals import post_delete, post_save
from django.dispatch import Signal, receiver
from opaque_keys import InvalidKeyError

from platform_plugin_aspects.sinks import (
CourseEnrollmentSink,
Expand Down Expand Up @@ -235,7 +236,7 @@ def on_object_tag_deleted( # pylint: disable=unused-argument # pragma: no cove
try:
CourseOverview.objects.get(id=instance.object_id)
dump_course_to_clickhouse.delay(instance.object_id)
except CourseOverview.DoesNotExist:
except (CourseOverview.DoesNotExist, InvalidKeyError):
pass


Expand Down

0 comments on commit 16c3a95

Please sign in to comment.