Skip to content

Commit

Permalink
feat: add backward compatibility for xblockutils
Browse files Browse the repository at this point in the history
  • Loading branch information
arbimaq committed Aug 9, 2024
1 parent 6b6e8b7 commit 9c4b433
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recommender/recommender.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
from xblock.fields import Scope, List, Dict, Boolean, String, JSONField
from web_fragments.fragment import Fragment
from xblock.reference.plugins import Filesystem
from xblock.utils.resources import ResourceLoader
try:
from xblock.utils.resources import ResourceLoader
except ModuleNotFoundError: # For backward compatibility with releases older than Quince.
from xblockutils.resources import ResourceLoader

# TODO: Should be updated once XBlocks and tracking logs have finalized APIs
# and documentation.
Expand Down

0 comments on commit 9c4b433

Please sign in to comment.