Error when your are not logged in
celiolatorraca opened this issue · comments
The script throws an error when we try to run it but not logged in...
Traceback (most recent call last):
File "/Users/<username>/.tsuru/plugins/bluegreen", line 151, in <module>
cnames = [bluegreen.get_cname(green), bluegreen.get_cname(blue)]
File "/Users/<username>/.tsuru/plugins/bluegreen", line 24, in get_cname
data = json.loads(response.read())
File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
exit status 1