Browse Source

Remove useless changes in PluginErro

prieto 8 years ago
parent
commit
413d8e7570
1 changed files with 1 additions and 20 deletions
  1. 1
    20
      lodel/plugin/plugins.py

+ 1
- 20
lodel/plugin/plugins.py View File

@@ -26,26 +26,7 @@ PLUGIN_DEPS_VARNAME = '__plugin_deps__'
26 26
 ACTIVATE_METHOD_NAME = '_activate'
27 27
 
28 28
 class PluginError(Exception):
29
-    def __init__(self, msg = "Unknow error", exceptions = None):
30
-        self._msg = msg
31
-        self._exceptions = dict() if exceptions is None else exceptions
32
-
33
-    def __repr__(self):
34
-        return self.__str__()
35
-
36
-    def __str__(self):
37
-        msg = self._msg
38
-        if isinstance(self._exceptions, dict):
39
-            for_iter = self._exceptions.items()
40
-        else:
41
-            for_iter = enumerate(self.__exceptions)
42
-        for obj, expt in for_iter:
43
-            msg += "\n\t{expt_obj} : ({expt_name}) {expt_msg}; ".format(
44
-                    expt_obj = obj,
45
-                    expt_name=expt.__class__.__name__,
46
-                    expt_msg=str(expt)
47
-            )
48
-        return msg
29
+    pass
49 30
 
50 31
 ##@brief Handle plugins
51 32
 #

Loading…
Cancel
Save