Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -204,7 +204,7 @@ def find_rss():
|
|
204 |
cont = json.loads(j.read())
|
205 |
#print(cont)
|
206 |
for ea in cont:
|
207 |
-
lod=""
|
208 |
print (ea['link'])
|
209 |
rss_url=ea['link']
|
210 |
r = requests.get(f'{rss_url}')
|
@@ -235,7 +235,7 @@ def find_rss():
|
|
235 |
r_description = lod['rss']['channel']['item'][i]['description']
|
236 |
lod = {"title":r_title, "description":r_description,"link":r_link}
|
237 |
except Exception as e:
|
238 |
-
lod
|
239 |
|
240 |
print(f'Exception::{e}')
|
241 |
out_box.append(lod)
|
|
|
204 |
cont = json.loads(j.read())
|
205 |
#print(cont)
|
206 |
for ea in cont:
|
207 |
+
#lod=""
|
208 |
print (ea['link'])
|
209 |
rss_url=ea['link']
|
210 |
r = requests.get(f'{rss_url}')
|
|
|
235 |
r_description = lod['rss']['channel']['item'][i]['description']
|
236 |
lod = {"title":r_title, "description":r_description,"link":r_link}
|
237 |
except Exception as e:
|
238 |
+
lod = f'{rss_url} ::ERROR:: {e}'
|
239 |
|
240 |
print(f'Exception::{e}')
|
241 |
out_box.append(lod)
|