ashb commented on a change in pull request #12495:
URL: https://github.com/apache/airflow/pull/12495#discussion_r527625267



##########
File path: airflow/www/views.py
##########
@@ -471,8 +471,8 @@ def chart_data(self):
             df = hook.get_pandas_df(
                 wwwutils.limit_sql(sql, CHART_LIMIT, conn_type=db.conn_type))
             df = df.fillna(0)
-        except Exception as e:
-            payload['error'] += "SQL execution failed. Details: " + str(e)
+        except Exception:
+            payload['error'] += "SQL execution failed. Contact your System 
Administrator for more details"

Review comment:
       (Assumming `self.log` exists in this context.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to