Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -374,7 +374,7 @@ def find_rss():
|
|
374 |
tt_phrases=tt.noun_phrases
|
375 |
if ea.get('description') != None:
|
376 |
r_description = ea['description']
|
377 |
-
else: r_description = [lod['rss']['channel']
|
378 |
td = TextBlob(r_description)
|
379 |
#td_nouns=td.tags
|
380 |
td_phrases=td.noun_phrases
|
@@ -386,7 +386,7 @@ def find_rss():
|
|
386 |
lods = {"title":r_title, "description":r_description,"link":r_link, "noun_phrases":phrases}
|
387 |
except Exception as e:
|
388 |
print(f"Exception::{ea}")
|
389 |
-
error_box.append({"Name":rss_url,"Keys":lod['rss']['channel']
|
390 |
print(e)
|
391 |
pass
|
392 |
#lods = {"title":"ERROR", "description":{e},"link":"ERROR"}
|
|
|
374 |
tt_phrases=tt.noun_phrases
|
375 |
if ea.get('description') != None:
|
376 |
r_description = ea['description']
|
377 |
+
else: r_description = [lod['rss']['channel']['item']]
|
378 |
td = TextBlob(r_description)
|
379 |
#td_nouns=td.tags
|
380 |
td_phrases=td.noun_phrases
|
|
|
386 |
lods = {"title":r_title, "description":r_description,"link":r_link, "noun_phrases":phrases}
|
387 |
except Exception as e:
|
388 |
print(f"Exception::{ea}")
|
389 |
+
error_box.append({"Name":rss_url,"Keys":lod['rss']['channel']['item'],"Error":e,"Error Code":4})
|
390 |
print(e)
|
391 |
pass
|
392 |
#lods = {"title":"ERROR", "description":{e},"link":"ERROR"}
|