Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support backward compatibility for Quince earlier releases #38

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion feedback/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
from xblock.core import XBlock
from xblock.fields import Scope, Integer, String, List, Float
from web_fragments.fragment import Fragment
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

Check warning on line 20 in feedback/feedback.py

View check run for this annotation

Codecov / codecov/patch

feedback/feedback.py#L19-L20

Added lines #L19 - L20 were not covered by tests

resource_loader = ResourceLoader(__name__)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def package_data(pkg, roots):

setup(
name='feedback-xblock',
version='1.1',
version='1.2.0',
description='XBlock for providing feedback on course content',
long_description=README,
long_description_content_type='text/x-rst',
Expand Down