Skip to content

Commit

Permalink
[demorunner] bugfix for exception handling during demo runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaciasc committed Jun 26, 2023
1 parent 7a38657 commit 1a2262f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ipol_demo/modules/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ def execute_experiment(
self.logger.exception(error_message)
raise IPOLExecutionError(error_message, error_message)

if status_code != 200:
if dr_response.get("error"):
print("DR answered KO for demo #{}".format(demo_id))

try:
Expand Down
3 changes: 1 addition & 2 deletions ipol_demo/modules/demorunner/demorunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@
status,
)
from fastapi.exceptions import RequestValidationError
from fastapi.responses import JSONResponse
from fastapi.responses import JSONResponse, StreamingResponse
from pydantic import BaseSettings
from starlette.responses import StreamingResponse
from Tools.run_demo_base import IPOLTimeoutError


Expand Down

0 comments on commit 1a2262f

Please sign in to comment.