Skip to content

Commit 5f972a1

Browse files
evidencebpFichteFoll
authored andcommitted
plugins\lib\fileconv\loaders.py unnecessary-pass
The method parse of LoaderProto should be overridden by subclasses (as discussed with FichteFoll). Instead of leaving with just pass changed to raise NotImplementedError to verify that they are not mistakenly used.
1 parent a28ddf7 commit 5f972a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/lib/fileconv/loaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def parse(self, *args, **kwargs):
295295
"""To be implemented. Should return the parsed data from
296296
``self.file_path`` as a Python object.
297297
"""
298-
pass
298+
raise NotImplementedError
299299

300300

301301
class JSONLoader(LoaderProto):

0 commit comments

Comments
 (0)