Skip to content

Commit

Permalink
fix remaining errors
Browse files Browse the repository at this point in the history
  • Loading branch information
savmickael committed Oct 11, 2022
1 parent 59457b0 commit aa88024
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ewoc_dag/bucket/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def download_prd(
super()._download_prd(prd_prefix, out_dirpath, request_payer=True)
except EOBucketException as exc:
logger.error(exc)
out_dirpath.rmdir()
raise AWSDownloadError(exc) from exc

if safe_format:
Expand Down
2 changes: 1 addition & 1 deletion src/ewoc_dag/safe_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def aws_to_safe(

if S1PrdIdInfo.is_valid(prd_id):
if (out_dirpath / "productInfo.json").exists():
prd_safe_dirpath = aws_s1_to_safe(out_dirpath, out_safe_dirpath.parent)
prd_safe_dirpath = aws_s1_to_safe(out_dirpath, out_safe_dirpath)
else:
out_safe_dirpath.rmdir()
raise S1SafeConversionError(
Expand Down

0 comments on commit aa88024

Please sign in to comment.