Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
javierdelapuente committed Oct 16, 2024
1 parent ef5374e commit 08dc100
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rockcraft/extensions/gunicorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,13 @@ def _app_prime(self) -> list[str]:
)
if (self.project_root / f).exists()
]
if not self.yaml_data.get("services", {}).get(self.framework, {}).get("command"):
if (
not self.yaml_data.get("services", {})
.get(self.framework, {})
.get("command")
):
# add the entrypoint only if user prime is not exclude mode
if not(user_prime and user_prime[0] and user_prime[0][0] == "-"):
if not (user_prime and user_prime[0] and user_prime[0][0] == "-"):
new_prime = "flask/app/" + self._find_wsgi_location().parts[0]
if new_prime not in user_prime:
user_prime.append(new_prime)
Expand Down

0 comments on commit 08dc100

Please sign in to comment.