fix check
This commit is contained in:
parent
c0773c1f92
commit
1d057b400a
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ class TopicPage(PhpBBPage):
|
|||
self.logger.warning('Unable to parse datetime')
|
||||
else:
|
||||
p = p_tags[0]
|
||||
text = p.find('strong') and p.find('strong').tail
|
||||
text = p.find('strong') is not None and p.find('strong').tail
|
||||
if not text:
|
||||
text = p.text[4:]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue