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 tiramisu.error import PropertiesOptionError, ConfigError
|
||||
from rougail.error import ExtentionError
|
||||
from rougail.error import ExtensionError
|
||||
|
||||
from .i18n import _
|
||||
from .__version__ import __version__
|
||||
|
|
@ -45,7 +45,7 @@ class RougailOutputJson:
|
|||
rougailconfig = RougailConfig
|
||||
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)
|
||||
)
|
||||
self.rougailconfig = rougailconfig
|
||||
|
|
@ -58,9 +58,6 @@ class RougailOutputJson:
|
|||
self.warnings = user_data_warnings
|
||||
else:
|
||||
self.warnings = []
|
||||
self.is_mandatory = self.rougailconfig["json.mandatory"]
|
||||
self.get = self.rougailconfig["json.get"]
|
||||
self.dico = {}
|
||||
|
||||
def run(self) -> None:
|
||||
ret = self.exporter()
|
||||
|
|
@ -76,6 +73,9 @@ class RougailOutputJson:
|
|||
return ret
|
||||
|
||||
def exporter(self) -> None:
|
||||
self.is_mandatory = self.rougailconfig["json.mandatory"]
|
||||
self.get = self.rougailconfig["json.get"]
|
||||
self.dico = {}
|
||||
if self.is_mandatory:
|
||||
ori_properties = self.config.property.exportation()
|
||||
self.config.property.read_write()
|
||||
|
|
|
|||
Loading…
Reference in a new issue