fix dying on exception
This commit is contained in:
parent
e564898be6
commit
bebb238655
|
@ -30,8 +30,8 @@ def read_known() -> list:
|
||||||
|
|
||||||
def daemon():
|
def daemon():
|
||||||
|
|
||||||
try:
|
|
||||||
while True:
|
while True:
|
||||||
|
try:
|
||||||
r = requests.get(CONFIG['URL'])
|
r = requests.get(CONFIG['URL'])
|
||||||
soup = BeautifulSoup(r.content, features='xml')
|
soup = BeautifulSoup(r.content, features='xml')
|
||||||
articles = soup.findAll('item')
|
articles = soup.findAll('item')
|
||||||
|
|
Loading…
Reference in New Issue