LevisNgigi commented on code in PR #35009:
URL: https://github.com/apache/superset/pull/35009#discussion_r2324710181
##########
superset/jinja_context.py:
##########
@@ -767,6 +769,12 @@ def process_template(self, sql: str, **kwargs: Any) -> str:
raise SupersetTemplateException(
"Infinite recursion detected in template"
) from ex
+ except UndefinedError:
+ return sql
+ except Exception as ex:
+ if "undefined" in str(ex).lower():
Review Comment:
Thanks for the suggestion! I refactored this to introduce a custom Exception
which is raised when we detect an undefined Jinja variable.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]