Skip to content

Commit

Permalink
Update superset/reports/notifications/email.py
Browse files Browse the repository at this point in the history
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
  • Loading branch information
AAfghahi and betodealmeida committed Jan 26, 2022
1 parent 89d7e58 commit 8c7e2f8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions superset/reports/notifications/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,11 @@ def _get_content(self) -> EmailContent:
html_table = ""

call_to_action = __("Explore in Superset")
url = ""
if self._content.url is not None:
url = modify_url_query(self._content.url, standalone="0")
url = (
modify_url_query(self._content.url, standalone="0")
if self._content.url is not None
else ""
)
img_tags = []
for msgid in images.keys():
img_tags.append(
Expand Down

0 comments on commit 8c7e2f8

Please sign in to comment.