Omnibus commited on
Commit
b936b0a
1 Parent(s): 71ba164

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -342,7 +342,10 @@ def find_rss():
342
  except Exception as e:
343
  lod=f'{rss_url} ::ERROR:: {e}'
344
  error_box.append({"Name":rss_url,"Error":e,"Error Code":1})
345
- valid_box.append({"source":ea['NAME'],"link":ea['URL'],"section":ea['TOPIC'],"description":ea['DESCRIPTION']})
 
 
 
346
  except Exception as e:
347
  lod=f'{rss_url} ::ERROR:: {e}'
348
  error_box.append({"Name":rss_url,"Error":e,"Error Code":2})
 
342
  except Exception as e:
343
  lod=f'{rss_url} ::ERROR:: {e}'
344
  error_box.append({"Name":rss_url,"Error":e,"Error Code":1})
345
+ if ea.get('section') is not None:
346
+ section = ea['section']
347
+ else: section = ""
348
+ valid_box.append({"source":ea['source'],"link":ea['link'],"section":section,"description":''})
349
  except Exception as e:
350
  lod=f'{rss_url} ::ERROR:: {e}'
351
  error_box.append({"Name":rss_url,"Error":e,"Error Code":2})