Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
yrobel-lima
commited on
Upload error_message_template.py
Browse files
utils/error_message_template.py
CHANGED
@@ -3,7 +3,7 @@ from typing import Optional
|
|
3 |
import streamlit as st
|
4 |
|
5 |
ERROR_MESSAGE = (
|
6 |
-
"Sorry,
|
7 |
"Please refresh the page or try again later. "
|
8 |
"If the error persists, please contact us at "
|
9 |
"[Tall Tree Health](https://www.talltreehealth.ca/contact-us)."
|
@@ -11,5 +11,5 @@ ERROR_MESSAGE = (
|
|
11 |
|
12 |
|
13 |
def handle_errors(error: Optional[Exception] = None):
|
14 |
-
st.warning(error if error else ERROR_MESSAGE, icon="
|
15 |
st.stop()
|
|
|
3 |
import streamlit as st
|
4 |
|
5 |
ERROR_MESSAGE = (
|
6 |
+
"Sorry, we encountered an unexpected error.\n\n"
|
7 |
"Please refresh the page or try again later. "
|
8 |
"If the error persists, please contact us at "
|
9 |
"[Tall Tree Health](https://www.talltreehealth.ca/contact-us)."
|
|
|
11 |
|
12 |
|
13 |
def handle_errors(error: Optional[Exception] = None):
|
14 |
+
st.warning(error if error else ERROR_MESSAGE, icon="⚠")
|
15 |
st.stop()
|