We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4046d84 commit 0b4fe09Copy full SHA for 0b4fe09
1 file changed
gitopscli/commands/delete_preview.py
@@ -43,7 +43,10 @@ def delete_preview_command(
43
44
apps_git.checkout("master")
45
logging.info("App repo branch master checkout successful")
46
- gitops_config = GitOpsConfig(apps_git.get_full_file_path(".gitops.config.yaml"))
+ try:
47
+ gitops_config = GitOpsConfig(apps_git.get_full_file_path(".gitops.config.yaml"))
48
+ except FileNotFoundError as ex:
49
+ raise GitOpsException(f"Couldn't find .gitops.config.yaml") from ex
50
logging.info("Read GitOpsConfig: %s", gitops_config)
51
52
root_git = create_git(
0 commit comments