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
|
||||
Receiver.send_message(u'openlp_process_events')
|
||||
div = soup.find('div', 'result-text-style-normal')
|
||||
if not div:
|
||||
return None
|
||||
self._clean_soup(div)
|
||||
span_list = div.findAll('span', 'text')
|
||||
log.debug('Span list: %s', span_list)
|
||||
|
Loading…
Reference in New Issue
Block a user