Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl-C during jenkins reading is nasty #59

Open
joshmoore opened this issue Dec 10, 2014 · 1 comment
Open

Ctrl-C during jenkins reading is nasty #59

joshmoore opened this issue Dec 10, 2014 · 1 comment

Comments

@joshmoore
Copy link
Member

(v)# jamoore@Joshuas-MacBook-Pro:/tmp$ omego download python --branch=OMERO-5.1-latest
^CTraceback (most recent call last):
  File "/opt/v/bin/omego", line 9, in <module>
    load_entry_point('omego==0.2.3-43-g6eb8', 'console_scripts', 'omego')()
  File "/opt/v/lib/python2.7/site-packages/omego/main.py", line 57, in entry_point
    (Version.NAME, OmegoVersion)])
  File "/opt/v/lib/python2.7/site-packages/yaclifw/framework.py", line 197, in main
    ns.func(ns)
  File "/opt/v/lib/python2.7/site-packages/omego/artifacts.py", line 228, in __call__
    artifacts = Artifacts(args)
  File "/opt/v/lib/python2.7/site-packages/omego/artifacts.py", line 40, in __init__
    root = self.read_xml(buildurl)
  File "/opt/v/lib/python2.7/site-packages/omego/artifacts.py", line 65, in read_xml
    url = fileutils.open_url(buildurl + 'api/xml')
  File "/opt/v/lib/python2.7/site-packages/omego/fileutils.py", line 67, in open_url
    return opener.open(url)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1214, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1187, in do_open
    r = h.getresponse(buffering=True)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1067, in getresponse
    response.begin()
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 409, in begin
    version, status, reason = self._read_status()
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 365, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 476, in readline
    data = self._sock.recv(self._rbufsize)
KeyboardInterrupt
@manics
Copy link
Member

manics commented Dec 10, 2014

There's very little "nice" exception handling at the moment, mostly because anything unexpected is probably worth investigating. I could trap KeyboardInterrupt though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants