WatchWebsite module: Assumes that empty content is not normal
This commit is contained in:
parent
a11c617ade
commit
aced38a44b
|
@ -146,10 +146,9 @@ def alert_change(content, site):
|
|||
|
||||
if site["type"] == "atom":
|
||||
if site["_lastpage"] is None:
|
||||
if site["lastcontent"] is None:
|
||||
site["_lastpage"] = Atom(content)
|
||||
else:
|
||||
site["_lastpage"] = Atom(site["lastcontent"])
|
||||
if site["lastcontent"] is None or site["lastcontent"] == "":
|
||||
site["lastcontent"] = content
|
||||
site["_lastpage"] = Atom(site["lastcontent"])
|
||||
try:
|
||||
page = Atom(content)
|
||||
except:
|
||||
|
|
Loading…
Reference in New Issue
Block a user