forked from TrueCloudLab/frostfs-testcases
do not catch error in HEAD as we need it fails on empty response
Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
This commit is contained in:
parent
e489b43d63
commit
d696a8ee68
2 changed files with 20 additions and 17 deletions
|
@ -247,13 +247,7 @@ def head_object(wallet: str, cid: str, oid: str, bearer_token: str="",
|
|||
f'{"--raw" if is_raw else ""} '
|
||||
f'{"--ttl 1" if is_direct else ""}'
|
||||
)
|
||||
output = None
|
||||
try:
|
||||
output = _cmd_run(cmd)
|
||||
except Exception as exc:
|
||||
logger.info(f"Head request failed with output: {output}")
|
||||
return None
|
||||
|
||||
output = _cmd_run(cmd)
|
||||
if not json_output:
|
||||
return output
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue