Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
fix(client): KeyError on cookie retrieval
Browse files Browse the repository at this point in the history
Fixed an issue where 'no active controller' message didn't show if
cookies didn't already exist.
  • Loading branch information
adamkdean authored and Matthew Fisher committed Jul 22, 2014
1 parent f2355a7 commit 6cc050c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/deis.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def _dispatch(self, method, path, body=None,
Dispatch an API request to the active Deis controller
"""
func = getattr(self._session, method.lower())
controller = self._settings['controller']
controller = self._settings.get('controller')
if not controller:
raise EnvironmentError(
'No active controller. Use `deis login` or `deis register` to get started.')
Expand Down

0 comments on commit 6cc050c

Please sign in to comment.