new method get_comment
This commit is contained in:
parent
7ca2c7a871
commit
73b6b1e655
2 changed files with 13 additions and 8 deletions
|
|
@ -83,7 +83,7 @@ class Article(object):
|
|||
self.date = None
|
||||
self.comments = []
|
||||
|
||||
if not tree:
|
||||
if tree is None:
|
||||
return
|
||||
|
||||
header = tree.find('header')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue