From 5f972a1a28ab4f7b0fa1d4cc2af752b7583e8a07 Mon Sep 17 00:00:00 2001 From: evidencebp Date: Mon, 18 Nov 2024 13:37:46 +0200 Subject: [PATCH] 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. --- plugins/lib/fileconv/loaders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/lib/fileconv/loaders.py b/plugins/lib/fileconv/loaders.py index aa66564a..501ab073 100644 --- a/plugins/lib/fileconv/loaders.py +++ b/plugins/lib/fileconv/loaders.py @@ -295,7 +295,7 @@ def parse(self, *args, **kwargs): """To be implemented. Should return the parsed data from ``self.file_path`` as a Python object. """ - pass + raise NotImplementedError class JSONLoader(LoaderProto):