Skip to content

Commit

Permalink
style: Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChV committed Sep 13, 2024
1 parent 998f372 commit e6ca2c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openedx/core/djangoapps/content/search/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,10 @@ def content_object_associations_changed_handler(**kwargs) -> None:

try:
# Check if valid if course or library block
usage_key = UsageKey.from_string(str(content_object.object_id))
usage_key = UsageKey.from_string(str(content_object.object_id))
except InvalidKeyError:
try:
# Check if valid if library collection
usage_key = LibraryCollectionLocator.from_string(str(content_object.object_id))
except InvalidKeyError:
log.error("Received invalid content object id")
Expand Down

0 comments on commit e6ca2c1

Please sign in to comment.