Compare commits
2 commits
6f358f88f2
...
88e7548fa4
| Author | SHA1 | Date | |
|---|---|---|---|
| 88e7548fa4 | |||
| 08e50e8aea |
4 changed files with 13 additions and 7 deletions
|
|
@ -1,3 +1,9 @@
|
|||
## 0.1.0a26 (2025-11-21)
|
||||
|
||||
### Fix
|
||||
|
||||
- ExtentionError => ExtensionError
|
||||
|
||||
## 0.1.0a25 (2025-11-06)
|
||||
|
||||
### Fix
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail.user_data_bitwarden"
|
||||
version = "0.1.0a25"
|
||||
version = "0.1.0a26"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "Rougail user_data Bitwarden"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
__version__ = "0.1.0a25"
|
||||
__version__ = "0.1.0a26"
|
||||
|
|
|
|||
|
|
@ -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