Skip to content

Commit

Permalink
misc: use for/else properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Karandash8 committed Jul 9, 2024
1 parent 0967b16 commit 5d14bb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions make_argocd_fly/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,12 @@ async def _run_kustomize(self, dir_path: str, retries: int = 3) -> str:
log.error('Kustomize error: {}'.format(stderr))
log.info('Retrying {}/{}'.format(attempt + 1, retries))
continue

return stdout.decode("utf-8")
break
else:
raise Exception('Kustomize run failed')

return stdout.decode("utf-8")

async def prepare(self) -> str:
config = get_config()
tmp_dir = config.get_tmp_dir()
Expand Down

0 comments on commit 5d14bb4

Please sign in to comment.