ALBS-444 #2

Merged
anfimovdm merged 9 commits from ALBS-444 into master 2022-07-01 14:25:17 +00:00
Showing only changes of commit b6dfd39655 - Show all commits

View File

@ -142,12 +142,14 @@ class CasWrapper:
self,
local_path: str,
use_hash: bool = False,
return_json: bool = False,
) -> bool:
is_authenticated = False
anfimovdm marked this conversation as resolved Outdated

Instead of with self I would prefer self.ensure_login() or something, because you didn't use exit

Instead of `with self` I would prefer `self.ensure_login()` or something, because you didn't use __exit__

Done

Done
with self as cas:
anfimovdm marked this conversation as resolved Outdated

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:
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: