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,13 +10,21 @@ import inspect
10 10
 import warnings
11 11
 
12 12
 from lodel.context import LodelContext
13
-from .exceptions import LodelDataHandlerNotAllowedOptionException
14 13
 
15 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 22
     'lodel.mlnamedobject':['MlNamedObject'],
19
-    'lodel.leapi.datahandlers.exceptions': ['LodelDataHandlerConsistencyException', 'LodelDataHandlerException'],
23
+    'lodel.leapi.datahandlers.exceptions': [
24
+        'LodelDataHandlerConsistencyException',
25
+        'LodelDataHandlerException',
26
+        'LodelDataHandlerNotAllowedOptionException'
27
+    ],
20 28
     'lodel.logger': 'logger'})
21 29
 
22 30
 

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

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

Loading…
Cancel
Save