fix: ExtentionError => ExtensionError
This commit is contained in:
parent
6f358f88f2
commit
08e50e8aea
1 changed files with 5 additions and 5 deletions
|
|
@ -25,7 +25,7 @@ from os import environ
|
|||
from shutil import which
|
||||
|
||||
|
||||
from rougail.error import ExtentionError
|
||||
from rougail.error import ExtensionError
|
||||
from .i18n import _
|
||||
|
||||
|
||||
|
|
@ -50,7 +50,7 @@ class RougailUserDataBitwarden:
|
|||
user_data = rougailconfig["step.user_data"]
|
||||
self.rougailconfig = rougailconfig
|
||||
if "bitwarden" not in user_data:
|
||||
raise ExtentionError(_('"bitwarden" is not set in step.user_data'))
|
||||
raise ExtensionError(_('"bitwarden" is not set in step.user_data'))
|
||||
self.errors = []
|
||||
self.warnings = []
|
||||
self.leader_informations = {}
|
||||
|
|
@ -76,12 +76,12 @@ class RougailUserDataBitwarden:
|
|||
else:
|
||||
command_string = _('"{0}"').format(force_command)
|
||||
if one_is_find:
|
||||
raise ExtentionError(
|
||||
raise ExtensionError(
|
||||
_("please unlock Bitwarden password database with {0}").format(
|
||||
command_string
|
||||
)
|
||||
)
|
||||
raise ExtentionError(
|
||||
raise ExtensionError(
|
||||
_("cannot find Bitwarden command {0} please install it").format(
|
||||
command_string
|
||||
)
|
||||
|
|
@ -292,5 +292,5 @@ def run_commandline(cmd) -> str:
|
|||
cpe = run(cmd, capture_output=True)
|
||||
err = cpe.stderr.decode("utf8")
|
||||
if cpe.returncode != 0 or err:
|
||||
raise Exception("{0} ({1})".format(err, cpe.returncode))
|
||||
raise ExtensionError("{0} ({1})".format(err, cpe.returncode))
|
||||
return cpe.stdout.decode("utf8")
|
||||
|
|
|
|||
Loading…
Reference in a new issue