fix: ExtentionError => ExtensionError
This commit is contained in:
parent
35a801a3ab
commit
f8dd47c4c8
1 changed files with 5 additions and 5 deletions
|
|
@ -21,7 +21,7 @@ from typing import Any, List, Optional
|
||||||
from json import dumps
|
from json import dumps
|
||||||
|
|
||||||
from tiramisu.error import PropertiesOptionError, ConfigError
|
from tiramisu.error import PropertiesOptionError, ConfigError
|
||||||
from rougail.error import ExtentionError
|
from rougail.error import ExtensionError
|
||||||
|
|
||||||
from .i18n import _
|
from .i18n import _
|
||||||
from .__version__ import __version__
|
from .__version__ import __version__
|
||||||
|
|
@ -45,7 +45,7 @@ class RougailOutputJson:
|
||||||
rougailconfig = RougailConfig
|
rougailconfig = RougailConfig
|
||||||
rougailconfig["step.output"] = self.output_name
|
rougailconfig["step.output"] = self.output_name
|
||||||
if rougailconfig["step.output"] != self.output_name:
|
if rougailconfig["step.output"] != self.output_name:
|
||||||
raise ExtentionError(
|
raise ExtensionError(
|
||||||
_('the "step.output" is not set to "{0}"').format(self.output_name)
|
_('the "step.output" is not set to "{0}"').format(self.output_name)
|
||||||
)
|
)
|
||||||
self.rougailconfig = rougailconfig
|
self.rougailconfig = rougailconfig
|
||||||
|
|
@ -58,9 +58,6 @@ class RougailOutputJson:
|
||||||
self.warnings = user_data_warnings
|
self.warnings = user_data_warnings
|
||||||
else:
|
else:
|
||||||
self.warnings = []
|
self.warnings = []
|
||||||
self.is_mandatory = self.rougailconfig["json.mandatory"]
|
|
||||||
self.get = self.rougailconfig["json.get"]
|
|
||||||
self.dico = {}
|
|
||||||
|
|
||||||
def run(self) -> None:
|
def run(self) -> None:
|
||||||
ret = self.exporter()
|
ret = self.exporter()
|
||||||
|
|
@ -76,6 +73,9 @@ class RougailOutputJson:
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def exporter(self) -> None:
|
def exporter(self) -> None:
|
||||||
|
self.is_mandatory = self.rougailconfig["json.mandatory"]
|
||||||
|
self.get = self.rougailconfig["json.get"]
|
||||||
|
self.dico = {}
|
||||||
if self.is_mandatory:
|
if self.is_mandatory:
|
||||||
ori_properties = self.config.property.exportation()
|
ori_properties = self.config.property.exportation()
|
||||||
self.config.property.read_write()
|
self.config.property.read_write()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue