diff --git a/audio/audio.py b/audio/audio.py index f640a81..2874d2c 100644 --- a/audio/audio.py +++ b/audio/audio.py @@ -4,7 +4,11 @@ import pkg_resources from xblock.core import XBlock from xblock.fields import Integer, Scope, String -from xblock.fragment import Fragment +try: + from web_fragments.fragment import Fragment +except: + # for backwards compatibility with quince and prior releases + from xblock.fragment import Fragment try: from xblock.utils.resources import ResourceLoader except ModuleNotFoundError: # For backward compatibility with releases older than Quince. diff --git a/setup.py b/setup.py index 1084c00..8f81cd4 100644 --- a/setup.py +++ b/setup.py @@ -92,7 +92,7 @@ def is_requirement(line): setup( name='audio-xblock', - version='0.3.0', + version='0.3.1', description='Audio XBlock, to play audio files in the course', long_description=README, long_description_content_type='text/markdown',