pre commit

This commit is contained in:
mike cullerton 2022-09-30 12:20:58 -04:00
parent 11a24368ba
commit c2d67c0087
1 changed files with 1 additions and 1 deletions

View File

@ -1309,7 +1309,7 @@ def delete_secret(key: str) -> Response:
def add_allowed_process_path(body: dict) -> Response:
"""Get allowed process paths."""
secret = SecretService().get_secret(body["secret_key"])
assert secret
assert secret # noqa: S101
allowed_process_path = SecretService.add_allowed_process(
secret.id, g.user.id, body["allowed_relative_path"]
)