Skip to content
Snippets Groups Projects
Commit 12a9336a authored by Neda Moeini's avatar Neda Moeini
Browse files

Fixed linting error.

parent 05269a8b
No related branches found
No related tags found
1 merge request!60Feature/nat 217 import sites
Pipeline #83853 passed
This commit is part of merge request !60. Comments created here will be created in the context of that merge request.
...@@ -21,7 +21,7 @@ def start_process(process_name: str, data: dict) -> UUID: ...@@ -21,7 +21,7 @@ def start_process(process_name: str, data: dict) -> UUID:
if pid is None: if pid is None:
raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail="Failed to start the process.") raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail="Failed to start the process.")
process = processes._get_process(pid) # pylint: disable=protected-access process = processes._get_process(pid)
if process.last_status == "failed": if process.last_status == "failed":
raise HTTPException( raise HTTPException(
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment