ALBS-444 #2
@ -142,12 +142,14 @@ class CasWrapper:
|
|||||||
self,
|
self,
|
||||||
local_path: str,
|
local_path: str,
|
||||||
use_hash: bool = False,
|
use_hash: bool = False,
|
||||||
|
return_json: bool = False,
|
||||||
) -> bool:
|
) -> bool:
|
||||||
is_authenticated = False
|
is_authenticated = False
|
||||||
anfimovdm marked this conversation as resolved
Outdated
|
|||||||
with self as cas:
|
with self as cas:
|
||||||
anfimovdm marked this conversation as resolved
Outdated
soksanichenko
commented
I guess colon is not needed in the logging message or it's in wrong place of the message I guess colon is not needed in the logging message or it's in wrong place of the message
|
|||||||
try:
|
try:
|
||||||
is_authenticated = cas.authenticate(local_path,
|
is_authenticated = cas.authenticate(local_path,
|
||||||
use_hash=use_hash)
|
use_hash=use_hash,
|
||||||
|
return_json=return_json)
|
||||||
# we can fall with ProcessExecutionError,
|
# we can fall with ProcessExecutionError,
|
||||||
# because source can be not notarized
|
# because source can be not notarized
|
||||||
except ProcessExecutionError:
|
except ProcessExecutionError:
|
||||||
|
Loading…
Reference in New Issue
Block a user
Instead of
with self
I would preferself.ensure_login()
or something, because you didn't use exitDone