Non friendly message when omploadr is down #3

Closed
masterkorp opened this Issue Jul 11, 2012 · 0 comments

Comments

Projects
None yet
2 participants

masterkorp youtube $ omup DC_SHOES_KEN_BLOCK_S_GYMKHANA_FIVE_ULTIMATE_URBAN_PLAYGROUND_SAN_FRANCISCO-LuDN2bCIyus.mp4
Traceback (most recent call last):
File "/usr/bin/omup", line 137, in
response = upload(args.file[0])
File "/usr/bin/omup", line 75, in upload
conn.request('POST', OMP_UP, body, {'Content-Type': header})
File "/usr/lib/python3.2/http/client.py", line 967, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.2/http/client.py", line 1005, in _send_request
self.endheaders(body)
File "/usr/lib/python3.2/http/client.py", line 963, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.2/http/client.py", line 808, in _send_output
self.send(msg)
File "/usr/lib/python3.2/http/client.py", line 746, in send
self.connect()
File "/usr/lib/python3.2/http/client.py", line 724, in connect
self.timeout, self.source_address)
File "/usr/lib/python3.2/socket.py", line 404, in create_connection
raise err
File "/usr/lib/python3.2/socket.py", line 395, in create_connection
sock.connect(sa)
socket.error: [Errno 111] Connection refused

This could be improved i think.

tlatsas closed this in 37ba554 Jul 11, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment