Omnibus commited on
Commit
e09749a
·
verified ·
1 Parent(s): e028975

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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'].keys()]
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'].keys(),"Error":e,"Error Code":4})
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"}