Add return_json option to notarize_artifact

This commit is contained in:
Vyacheslav Potoropin 2022-06-29 18:50:51 +02:00
parent 036d5c589a
commit b6dfd39655
1 changed files with 3 additions and 1 deletions

View File

@ -142,12 +142,14 @@ class CasWrapper:
self,
local_path: str,
use_hash: bool = False,
return_json: bool = False,
) -> bool:
is_authenticated = False
with self as cas:
try:
is_authenticated = cas.authenticate(local_path,
use_hash=use_hash)
use_hash=use_hash,
return_json=return_json)
# we can fall with ProcessExecutionError,
# because source can be not notarized
except ProcessExecutionError: