Browse Source

Changed the importing of the UnallowedOption Exception

Roland Haroutiounian 8 years ago
parent
commit
18770976cf
2 changed files with 14 additions and 4 deletions
  1. 12
    4
      lodel/leapi/datahandlers/base_classes.py
  2. 2
    0
      lodel/leapi/datahandlers/exceptions.py

+ 12
- 4
lodel/leapi/datahandlers/base_classes.py View File

10
 import warnings
10
 import warnings
11
 
11
 
12
 from lodel.context import LodelContext
12
 from lodel.context import LodelContext
13
-from .exceptions import LodelDataHandlerNotAllowedOptionException
14
 
13
 
15
 LodelContext.expose_modules(globals(), {
14
 LodelContext.expose_modules(globals(), {
16
-    'lodel.exceptions': ['LodelException', 'LodelExceptions',
17
-        'LodelFatalError', 'DataNoneValid', 'FieldValidationError'],
15
+    'lodel.exceptions': [
16
+        'LodelException',
17
+        'LodelExceptions',
18
+        'LodelFatalError',
19
+        'DataNoneValid',
20
+        'FieldValidationError'
21
+    ],
18
     'lodel.mlnamedobject':['MlNamedObject'],
22
     'lodel.mlnamedobject':['MlNamedObject'],
19
-    'lodel.leapi.datahandlers.exceptions': ['LodelDataHandlerConsistencyException', 'LodelDataHandlerException'],
23
+    'lodel.leapi.datahandlers.exceptions': [
24
+        'LodelDataHandlerConsistencyException',
25
+        'LodelDataHandlerException',
26
+        'LodelDataHandlerNotAllowedOptionException'
27
+    ],
20
     'lodel.logger': 'logger'})
28
     'lodel.logger': 'logger'})
21
 
29
 
22
 
30
 

+ 2
- 0
lodel/leapi/datahandlers/exceptions.py View File

1
 def LodelDataHandlerException(Exception):
1
 def LodelDataHandlerException(Exception):
2
     pass
2
     pass
3
 
3
 
4
+
4
 def LodelDataHandlerConsistencyException(LodelDataHandlerException):
5
 def LodelDataHandlerConsistencyException(LodelDataHandlerException):
5
     pass
6
     pass
6
 
7
 
8
+
7
 def LodelDataHandlerNotAllowedOptionException(LodelDataHandlerException):
9
 def LodelDataHandlerNotAllowedOptionException(LodelDataHandlerException):
8
     pass
10
     pass

Loading…
Cancel
Save