forked from openlp/openlp
Fix bug #1194730 by checking that a div is actually returned
bzr-revno: 2152
This commit is contained in:
commit
4fac956dca
@ -245,6 +245,8 @@ class BGExtract(object):
|
|||||||
return None
|
return None
|
||||||
Receiver.send_message(u'openlp_process_events')
|
Receiver.send_message(u'openlp_process_events')
|
||||||
div = soup.find('div', 'result-text-style-normal')
|
div = soup.find('div', 'result-text-style-normal')
|
||||||
|
if not div:
|
||||||
|
return None
|
||||||
self._clean_soup(div)
|
self._clean_soup(div)
|
||||||
span_list = div.findAll('span', 'text')
|
span_list = div.findAll('span', 'text')
|
||||||
log.debug('Span list: %s', span_list)
|
log.debug('Span list: %s', span_list)
|
||||||
|
Loading…
Reference in New Issue
Block a user