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