WatchWebsite module: Assumes that empty content is not normal
This commit is contained in:
parent
a11c617ade
commit
aced38a44b
1 changed files with 3 additions and 4 deletions
|
|
@ -146,10 +146,9 @@ def alert_change(content, site):
|
||||||
|
|
||||||
if site["type"] == "atom":
|
if site["type"] == "atom":
|
||||||
if site["_lastpage"] is None:
|
if site["_lastpage"] is None:
|
||||||
if site["lastcontent"] is None:
|
if site["lastcontent"] is None or site["lastcontent"] == "":
|
||||||
site["_lastpage"] = Atom(content)
|
site["lastcontent"] = content
|
||||||
else:
|
site["_lastpage"] = Atom(site["lastcontent"])
|
||||||
site["_lastpage"] = Atom(site["lastcontent"])
|
|
||||||
try:
|
try:
|
||||||
page = Atom(content)
|
page = Atom(content)
|
||||||
except:
|
except:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue