Update slixfeed.py
This commit is contained in:
parent
9cd101a26d
commit
64dd05837d
1 changed files with 12 additions and 11 deletions
|
@ -374,6 +374,7 @@ async def download_updates(conn):
|
||||||
source = url[0]
|
source = url[0]
|
||||||
html = await download_page(url[0])
|
html = await download_page(url[0])
|
||||||
print(url[0])
|
print(url[0])
|
||||||
|
if html:
|
||||||
try:
|
try:
|
||||||
feed = feedparser.parse(html)
|
feed = feedparser.parse(html)
|
||||||
if feed.bozo:
|
if feed.bozo:
|
||||||
|
@ -384,7 +385,7 @@ async def download_updates(conn):
|
||||||
print(bozo)
|
print(bozo)
|
||||||
except (IncompleteReadError, IncompleteRead, error.URLError) as e:
|
except (IncompleteReadError, IncompleteRead, error.URLError) as e:
|
||||||
print(e)
|
print(e)
|
||||||
continue
|
return
|
||||||
# TODO Place these couple of lines back down
|
# TODO Place these couple of lines back down
|
||||||
# NOTE Need to correct the SQL statement to do so
|
# NOTE Need to correct the SQL statement to do so
|
||||||
entries = feed.entries
|
entries = feed.entries
|
||||||
|
|
Loading…
Reference in a new issue