DrishtiSharma commited on
Commit
d327b8d
·
verified ·
1 Parent(s): 3b037e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -483,6 +483,6 @@ if st.button("Generate Patent Insights"):
483
  st.warning("Report generation skipped due to missing content.")
484
 
485
  except Exception as e:
486
- # Error Handling
487
- logging.error(f"An error occurred during execution: {e}")
488
- st.error("⚠️ An unexpected error occurred. Please try again.")
 
483
  st.warning("Report generation skipped due to missing content.")
484
 
485
  except Exception as e:
486
+ error_message = traceback.format_exc()
487
+ logging.error(f"An error occurred during execution:\n{error_message}")
488
+ st.error(f"⚠️ An unexpected error occurred:\n{e}")