Skip to content
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
3 changes: 1 addition & 2 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ echo "openapi.yml generated continue to pygeoapi"
echo "Trying to generate asyncapi.yml"
/venv/bin/pygeoapi asyncapi generate ${PYGEOAPI_CONFIG} --output-file ${PYGEOAPI_ASYNCAPI}

[[ $? -ne 0 ]] && error "asyncapi.yml could not be generated ERROR"
echo "asyncapi.yml generated continue to pygeoapi"
[[ $? -ne 0 ]] && echo "asyncapi.yml could not be generated; skipping"

start_gunicorn() {
# SCRIPT_NAME should not have value '/'
Expand Down
4 changes: 2 additions & 2 deletions pygeoapi/asyncapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ def load_asyncapi_document() -> dict:
if not os.path.exists(pygeoapi_asyncapi):
msg = (f'AsyncAPI document {pygeoapi_asyncapi} does not exist. '
'Please generate before starting pygeoapi')
LOGGER.error(msg)
raise RuntimeError(msg)
LOGGER.warning(msg)
return {}

with open(pygeoapi_asyncapi, encoding='utf8') as ff:
if pygeoapi_asyncapi.endswith(('.yaml', '.yml')):
Expand Down