Skip to content

Commit 8a6f44e

Browse files
committed
Fixed #204 -- deis containers works before git push without error.
1 parent d847753 commit 8a6f44e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

client/deis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,8 @@ def containers_list(self, args):
823823
response = self._dispatch('get', "/api/apps/{}/builds".format(app))
824824
if response.status_code != requests.codes.ok: # @UndefinedVariable
825825
raise ResponseError(response)
826-
procfile = json.loads(response.json()['results'][0]['procfile'])
826+
txt = response.json()['results'][0]['procfile']
827+
procfile = json.loads(txt) if txt else {}
827828
print("=== {} Containers".format(app))
828829
c_map = {}
829830
for item in containers['results']:

0 commit comments

Comments
 (0)