It is not possible to start up the bluesky-httpserver without
Despite it being labelled as optional:
|
def build_app(authentication=None, api_access=None, resource_access=None, server_settings=None): |
|
""" |
|
Build application |
|
|
|
Parameters |
|
---------- |
|
authentication: dict, optional |
|
Dict of authentication configuration. |
|
server_settings: dict, optional |
|
Dict of other server configuration. |
|
""" |
|
authentication = authentication or {} |
|
authentication_providers = authentication.get("providers", []) |
|
authenticators = {spec["provider"]: spec["authenticator"] for spec in authentication_providers} |
|
api_access = api_access or {} |
|
api_access_manager = api_access.get("manager_object", None) |
|
resource_access = resource_access or {} |
|
resource_access_manager = resource_access.get("manager_object", None) |
|
server_settings = server_settings or {} |
server settings accesses a key without checking if it exists. It should use getatr instead I think.
|
if "custom_routers" in server_settings["server_configuration"]: |
It is not possible to start up the bluesky-httpserver without
Despite it being labelled as optional:
bluesky-httpserver/bluesky_httpserver/app.py
Lines 114 to 132 in 54cbd08
server settings accesses a key without checking if it exists. It should use
getatrinstead I think.bluesky-httpserver/bluesky_httpserver/app.py
Line 144 in 54cbd08