ruff compatible to YTT,E,W,F
All checks were successful
Pytest / pytest (3.12) (push) Successful in 50s
Pytest / pytest (3.13) (push) Successful in 49s
Pytest / pytest (3.14) (push) Successful in 49s
Pytest / pytest (3.12) (pull_request) Successful in 48s
Pytest / pytest (3.13) (pull_request) Successful in 49s
Pytest / pytest (3.14) (pull_request) Successful in 50s

This commit is contained in:
Justus Kuhlmann 2025-12-02 10:28:22 +01:00
commit d137f67e10
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6
8 changed files with 225 additions and 16 deletions

View file

@ -15,7 +15,7 @@ def _project_lookup_by_alias(db, alias):
c.execute(f"SELECT * FROM 'projects' WHERE alias = '{alias}'")
results = c.fetchall()
conn.close()
if len(results) > 1:
if len(results)>1:
print("Error: multiple projects found with alias " + alias)
elif len(results) == 0:
raise Exception("Error: no project found with alias " + alias)