This repository was archived by the owner on Dec 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
catch request timeout Error and tell the user someting useful #299
Copy link
Copy link
Open
Labels
Description
dcm-list-servers -v
Traceback (most recent call last):
File "/Users/igable/code/mixcoatl/bin/dcm-list-servers", line 6, in <module>
exec(compile(open(__file__).read(), __file__, 'exec'))
File "/Users/igable/code/mixcoatl/mixcoatl/bin/dcm-list-servers", line 54, in <module>
results = Server.all(region_id=cmd_args.region)
File "/Users/igable/code/mixcoatl/mixcoatl/mixcoatl/infrastructure/server.py", line 585, in all
x = r.get(params=params)
File "/Users/igable/code/mixcoatl/mixcoatl/mixcoatl/resource.py", line 565, in get
return self.__doreq('GET', **kwargs)
File "/Users/igable/code/mixcoatl/mixcoatl/mixcoatl/resource.py", line 474, in __doreq
method, url, headers=headers, verify=ssl_verify, **kwargs)
File "/Users/igable/code/mixcoatl/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/api.py", line 50, in request
response = session.request(method=method, url=url, **kwargs)
File "/Users/igable/code/mixcoatl/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/sessions.py", line 465, in request
resp = self.send(prep, **send_kwargs)
File "/Users/igable/code/mixcoatl/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "/Users/igable/code/mixcoatl/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/adapters.py", line 415, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', error(60, 'Operation timed out'))
Reactions are currently unavailable