Skip to content

Commit

Permalink
feat: Adding python3.11 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
awais786 committed Apr 5, 2024
1 parent 1ff1ed3 commit 266205f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imagemodal/mixins/fragment.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
from django.template.context import Context
from xblock.core import XBlock

# For backward compatibility with quince and earlier.
try:
from web_fragments.fragment import Fragment
except:
from xblock.fragment import Fragment # For backward compatibility with quince and earlier.
from xblock.fragment import Fragment # pylint: disable=broad-except


class XBlockFragmentBuilderMixin:
Expand Down

0 comments on commit 266205f

Please sign in to comment.