summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-02-08 18:33:39 +0200
committerLars Wirzenius <liw@liw.fi>2018-02-08 18:33:39 +0200
commit81e1414f80bb95dff081a226986762e295bf1a06 (patch)
tree520fef59c8301cdc28d715e23559dc8a43fc2fbd
parent5fe4d82a05d88b5136ffa053fb7d40f01b701fca (diff)
downloadick2-81e1414f80bb95dff081a226986762e295bf1a06.tar.gz
Fix: handle missing version result
-rwxr-xr-xworker_manager2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker_manager b/worker_manager
index 5e0b0f3..7fc3aec 100755
--- a/worker_manager
+++ b/worker_manager
@@ -185,7 +185,7 @@ class ControllerAPI:
version = self._httpapi.get(url, headers)
if version:
logging.info('Version: %r', version)
- return version['blob_service']
+ return version.get('blob_service')
class HttpApi: