Compare commits

..

No commits in common. "88e7548fa4fbd85685c6c348fc75f4fb6d8f22e4" and "6f358f88f2b8af236d7fce8227593adc674890fb" have entirely different histories.

4 changed files with 7 additions and 13 deletions

View file

@ -1,9 +1,3 @@
## 0.1.0a26 (2025-11-21)
### Fix
- ExtentionError => ExtensionError
## 0.1.0a25 (2025-11-06)
### Fix

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project]
name = "rougail.user_data_bitwarden"
version = "0.1.0a26"
version = "0.1.0a25"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md"
description = "Rougail user_data Bitwarden"

View file

@ -1 +1 @@
__version__ = "0.1.0a26"
__version__ = "0.1.0a25"

View file

@ -25,7 +25,7 @@ from os import environ
from shutil import which
from rougail.error import ExtensionError
from rougail.error import ExtentionError
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 ExtensionError(_('"bitwarden" is not set in step.user_data'))
raise ExtentionError(_('"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 ExtensionError(
raise ExtentionError(
_("please unlock Bitwarden password database with {0}").format(
command_string
)
)
raise ExtensionError(
raise ExtentionError(
_("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 ExtensionError("{0} ({1})".format(err, cpe.returncode))
raise Exception("{0} ({1})".format(err, cpe.returncode))
return cpe.stdout.decode("utf8")