diff --git a/recommender/recommender.py b/recommender/recommender.py index 38f9157..3ad6101 100644 --- a/recommender/recommender.py +++ b/recommender/recommender.py @@ -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 xblockutils.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.