[google] handle errors gracefully

Bug #380918 reported by Stefano Rivera
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ibid
Fix Released
Low
Stefano Rivera

Bug Description

2009-05-25 01:23:04,251 ERROR core.dispatcher: Exception occured in GoogleAPISearch processor of google plugin
Traceback (most recent call last):
  File "/home/dazzle/ibid/dazzle/ibid/core.py", line 23, in _process
    processor.process(event)
  File "/home/dazzle/ibid/dazzle/ibid/plugins/__init__.py", line 55, in process
    method(event, *match.groups())
  File "/home/dazzle/ibid/dazzle/ibid/plugins/google.py", line 48, in search
    items = self._google_api_search(query)
  File "/home/dazzle/ibid/dazzle/ibid/plugins/google.py", line 40, in _google_api_search
    f = urlopen(req)
  File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.5/urllib2.py", line 381, in open
    response = self._open(req, data)
  File "/usr/lib/python2.5/urllib2.py", line 399, in _open
    '_open', req)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 1107, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.5/urllib2.py", line 1080, in do_open
    r = h.getresponse()
  File "/usr/lib/python2.5/httplib.py", line 928, in getresponse
    response.begin()
  File "/usr/lib/python2.5/httplib.py", line 385, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.5/httplib.py", line 349, in _read_status
    raise BadStatusLine(line)
BadStatusLine

Google API search looks pretty restful, we need to handle this

Changed in ibid:
assignee: nobody → Stefano Rivera (stefanor)
status: New → In Progress
Changed in ibid:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.