Skip to content

Commit

Permalink
Update check_bot_approved_files.py (#98)
Browse files Browse the repository at this point in the history
Extending exception message.
  • Loading branch information
marko-k0 authored Jan 10, 2025
1 parent f47aa03 commit 1a6024c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_approved_files_config(repo: github3.github.repo) -> str:
return config_file
except github3.exceptions.NotFoundError:
raise Exception(
f"No config file found. Make sure you have a file saved at {BOT_APPROVED_FILES_PATH}"
f"No config file found. Make sure you have a file saved at {BOT_APPROVED_FILES_PATH} in the default branch"
)


Expand Down
2 changes: 1 addition & 1 deletion reusable_workflows/tests/test_repo_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_get_approved_files_config_fails(download_gh_file):

assert (
# fmt: off
str(exc.value) == f"No config file found. Make sure you have a file saved at {BOT_APPROVED_FILES_PATH}"
str(exc.value) == f"No config file found. Make sure you have a file saved at {BOT_APPROVED_FILES_PATH} in the default branch"
)


Expand Down

0 comments on commit 1a6024c

Please sign in to comment.