Skip to content

Commit

Permalink
skip update-additional-dependencies if requirements.txt does not ex…
Browse files Browse the repository at this point in the history
…ist (#3392)
  • Loading branch information
ilaner authored Jul 24, 2023
1 parent 93a0149 commit eef5b21
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demisto_sdk/scripts/update_additional_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ def update_additional_dependencies(
"Skipping update of additional dependencies since poetry.lock was not changed"
)
return 0
if not requirements_path.exists():
logger.info(
"Skipping update of additional dependencies since requirements.txt was not found"
)
return 0
requirements = requirements_path.read_text().splitlines()
pre_commit = get_file(pre_commit_config_path)
for repo in pre_commit["repos"]:
Expand Down

0 comments on commit eef5b21

Please sign in to comment.