mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-19 05:58:53 -04:00
clients: explicitly declare cbc_proxy_client
it is global rather than local but python cannot infer this and we get UnboundLocalError Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk>
This commit is contained in:
@@ -114,6 +114,7 @@ def create_app(application):
|
|||||||
performance_platform_client.init_app(application)
|
performance_platform_client.init_app(application)
|
||||||
document_download_client.init_app(application)
|
document_download_client.init_app(application)
|
||||||
|
|
||||||
|
global cbc_proxy_client
|
||||||
if application.config['CBC_PROXY_AWS_ACCESS_KEY_ID']:
|
if application.config['CBC_PROXY_AWS_ACCESS_KEY_ID']:
|
||||||
cbc_proxy_client = CBCProxyClient()
|
cbc_proxy_client = CBCProxyClient()
|
||||||
cbc_proxy_client.init_app(application)
|
cbc_proxy_client.init_app(application)
|
||||||
|
|||||||
Reference in New Issue
Block a user