Add error logging
Browse files
functions/chart_functions.py
CHANGED
|
@@ -53,6 +53,7 @@ def chart_generation_func(data: List[dict], session_hash: str, layout: Dict[str,
|
|
| 53 |
|
| 54 |
except Exception as e:
|
| 55 |
print("CHART ERROR")
|
|
|
|
| 56 |
reply = f"""There was an error generating the Plotly Chart from {data} and {layout}
|
| 57 |
The error is {e},
|
| 58 |
You should probably try again.
|
|
@@ -89,6 +90,7 @@ def table_generation_func(data: List[dict], session_hash):
|
|
| 89 |
|
| 90 |
except Exception as e:
|
| 91 |
print("TABLE ERROR")
|
|
|
|
| 92 |
reply = f"""There was an error generating the Pandas DataFrame table from {data}
|
| 93 |
The error is {e},
|
| 94 |
You should probably try again.
|
|
|
|
| 53 |
|
| 54 |
except Exception as e:
|
| 55 |
print("CHART ERROR")
|
| 56 |
+
print(e)
|
| 57 |
reply = f"""There was an error generating the Plotly Chart from {data} and {layout}
|
| 58 |
The error is {e},
|
| 59 |
You should probably try again.
|
|
|
|
| 90 |
|
| 91 |
except Exception as e:
|
| 92 |
print("TABLE ERROR")
|
| 93 |
+
print(e)
|
| 94 |
reply = f"""There was an error generating the Pandas DataFrame table from {data}
|
| 95 |
The error is {e},
|
| 96 |
You should probably try again.
|