Johan713 commited on
Commit
8d90ed6
·
verified ·
1 Parent(s): e7461b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -769,8 +769,9 @@ def explore_data():
769
  news = fetch_news(company_name)
770
  for item in news:
771
  st.markdown(f"[{item['title']}]({item['link']}) ({item['pubDate']})")
772
- else:
773
- st.error("Failed to fetch data. Please try again.")
 
774
 
775
  except Exception as e:
776
  st.error(f"An error occurred: {str(e)}. Please try a different time period or check your internet connection.")
 
769
  news = fetch_news(company_name)
770
  for item in news:
771
  st.markdown(f"[{item['title']}]({item['link']}) ({item['pubDate']})")
772
+
773
+ else:
774
+ st.error("Failed to fetch data. Please try again.")
775
 
776
  except Exception as e:
777
  st.error(f"An error occurred: {str(e)}. Please try a different time period or check your internet connection.")