Skip to content

Commit

Permalink
refactor: Separate try-except for ResourceLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
ttqureshi committed Sep 27, 2024
1 parent d586599 commit 5b98078
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion acid/acid.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@

try:
from web_fragments.fragment import Fragment
from xblock.utils.resources import ResourceLoader
except:
from xblock.fragment import Fragment # For backward compatibility with quince and earlier.

try:
from xblock.utils.resources import ResourceLoader
except:
from xblockutils.resources import ResourceLoader



def generate_fields(cls):
"""
A class decorator that generates fields for all field scopes.
Expand Down

0 comments on commit 5b98078

Please sign in to comment.