Skip to content

Commit 551e742

Browse files
committed
Fixed possible exception case from previous commit.
1 parent 9376f78 commit 551e742

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

client/deis.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,11 @@ def main():
18231823
except ResponseError as err:
18241824
resp = err.message
18251825
print('{} {}'.format(resp.status_code, resp.reason))
1826-
print(resp.json() or resp.text)
1826+
try:
1827+
msg = resp.json()
1828+
except:
1829+
msg = resp.text
1830+
print(msg)
18271831
sys.exit(1)
18281832

18291833

0 commit comments

Comments
 (0)