Skip to content

Commit

Permalink
fix: Exit check_req if core_requirements is None (#137)
Browse files Browse the repository at this point in the history
Otherwise the following statement crashes.

---

Steps to reproduce:
1. Install viur-core as editable
2. deploy app
  • Loading branch information
sveneberth authored Apr 30, 2024
1 parent 42e1c5f commit 3da147d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/viur_cli/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def check_req(projects_requirements_path):

if not core_requirements:
echo_error("could now find core package, please update the core to validate the requirements.txt")
return

core_requirements_obj = utils.requirements_to_dict(parse_requirements(core_requirements, session=PipSession()))

Expand Down

0 comments on commit 3da147d

Please sign in to comment.