From efa6fb0bd9364ac7c5c1dff68cc437bc37fac579 Mon Sep 17 00:00:00 2001 From: Toby Lorne Date: Tue, 20 Oct 2020 13:01:17 +0100 Subject: [PATCH] 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 --- app/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/__init__.py b/app/__init__.py index d79cb6bde..e30655832 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -114,6 +114,7 @@ def create_app(application): performance_platform_client.init_app(application) document_download_client.init_app(application) + global cbc_proxy_client if application.config['CBC_PROXY_AWS_ACCESS_KEY_ID']: cbc_proxy_client = CBCProxyClient() cbc_proxy_client.init_app(application)