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
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:
parent
602324f84f
commit
d137f67e10
8 changed files with 225 additions and 16 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue