Skip to content

Commit f95c365

Browse files
commonismLujeni
authored andcommitted
linting
1 parent 910427a commit f95c365

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/vaultwarden/models/bitwarden.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
)
3030

3131
from vaultwarden.clients.bitwarden import BitwardenAPIClient
32-
from vaultwarden.models.enum import CipherType, OrganizationUserType, KdfType
32+
from vaultwarden.models.enum import CipherType, KdfType, OrganizationUserType
3333
from vaultwarden.models.exception_models import BitwardenError
3434
from vaultwarden.models.permissive_model import PermissiveBaseModel
3535
from vaultwarden.utils.crypto import decrypt, encrypt
@@ -74,7 +74,8 @@ def decode_bytes(
7474
return decrypt(handler(value), key)
7575
except Exception:
7676
continue
77-
raise ValueError(f"No key found")
77+
raise ValueError("No key found")
78+
7879

7980
def decode_string(
8081
value: Any, handler: ValidatorFunctionWrapHandler, info: ValidationInfo
@@ -229,9 +230,7 @@ def set_key(
229230
context = cast(dict, info.context)
230231
cctx = cast(list[bytes], context.get("cctx"))
231232

232-
cctx.append(
233-
decrypt(key, cctx[0])
234-
)
233+
cctx.append(decrypt(key, cctx[0]))
235234

236235
v = handler(data)
237236

@@ -801,7 +800,7 @@ def _get_ciphers(self) -> list[CipherDetails]:
801800
context={
802801
"parent_id": self.Id,
803802
"client": self.api_client,
804-
"cctx": [org_key], # crypto context
803+
"cctx": [org_key], # crypto context
805804
},
806805
)
807806
return res.Data

0 commit comments

Comments
 (0)