Skip to content
This repository was archived by the owner on Jul 15, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions api_reflector/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@ def mock(path: str) -> Response:
)
response.execute_actions(req_json, content)

except UndefinedError as ex:
except (UndefinedError, TemplateSyntaxError, TemplateError) as ex:
return _process_error_response(ex)
except TemplateSyntaxError as ex:
return _process_error_response(ex)
except TemplateError as ex:
return _process_error_response(ex)
else:
return Response(content, status=response.status_code, mimetype=response.content_type)

return Response(content, status=response.status_code, mimetype=response.content_type)
17 changes: 0 additions & 17 deletions docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,5 @@ services:
timeout: 5s
retries: 5

api-reflector:
build: .
ports:
- "6502:6502"
volumes:
- type: bind
source: .
target: /app
env_file:
- ./.env.example
environment:
- postgres_dsn=postgresql://postgres:pass@postgres/postgres
entrypoint: sh -c "gunicorn --error-logfile=- --access-logfile=- --bind=0.0.0.0:6502 wsgi --reload"
depends_on:
postgres:
condition: service_healthy

volumes:
pgdata:
Loading