From b6dfd39655258ab91588e8685b7f81a09d1c5487 Mon Sep 17 00:00:00 2001 From: Vyacheslav Potoropin Date: Wed, 29 Jun 2022 18:50:51 +0200 Subject: [PATCH] Add return_json option to notarize_artifact --- cas_wrapper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cas_wrapper.py b/cas_wrapper.py index 0284389..fd3c39e 100644 --- a/cas_wrapper.py +++ b/cas_wrapper.py @@ -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: