Skip to content

Commit 6cc050c

Browse files
adamkdeanMatthew Fisher
authored andcommitted
fix(client): KeyError on cookie retrieval
Fixed an issue where 'no active controller' message didn't show if cookies didn't already exist.
1 parent f2355a7 commit 6cc050c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/deis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def _dispatch(self, method, path, body=None,
368368
Dispatch an API request to the active Deis controller
369369
"""
370370
func = getattr(self._session, method.lower())
371-
controller = self._settings['controller']
371+
controller = self._settings.get('controller')
372372
if not controller:
373373
raise EnvironmentError(
374374
'No active controller. Use `deis login` or `deis register` to get started.')

0 commit comments

Comments
 (0)