File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
xblocks_contrib/discussion Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 11"""TO-DO: Write a description of what this XBlock is."""
22
3- from importlib .resources import files
4-
53import logging
6- import markupsafe
74import urllib
5+
6+ import markupsafe
87from django .conf import settings
98from django .template .loader import render_to_string
109from django .urls import reverse
@@ -62,8 +61,8 @@ def is_discussion_enabled(course_id): #pylint: disable=unused-argument
6261# This Xblock is just to test the strucutre of xblocks-contrib
6362@XBlock .needs ("i18n" )
6463@XBlock .wants ("user" )
65- class DiscussionXBlock ( XBlock , StudioEditableXBlockMixin ,
66- LegacyXmlMixin ): #pylint: disable=abstract-method
64+ # pylint: disable=abstract-method
65+ class DiscussionXBlock ( XBlock , StudioEditableXBlockMixin , LegacyXmlMixin ):
6766 """
6867 Provides a discussion forum that is inline with other content in the courseware.
6968 """
@@ -189,7 +188,7 @@ def add_resource_urls(self, fragment):
189188 for js_file in self .get_all_js_files ():
190189 try :
191190 fragment .add_javascript (loader .load_unicode (js_file ))
192- except Exception as e :
191+ except Exception as e : # pylint: disable=broad-exception-caught
193192 # Fallback to URL if file can't be loaded inline
194193 log .warning ("Could not load %s inline, using URL: %s" , js_file , e )
195194
You can’t perform that action at this time.
0 commit comments