Skip to content

Commit 6d316bb

Browse files
Fix regression with 'None' inserted in html by google analytics script (#404)
1 parent 77a6635 commit 6d316bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pydata_sphinx_theme/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ def generate_google_analytics_script(id):
288288
"""
289289
soup = bs(script, "html.parser")
290290
return soup
291+
else:
292+
return ""
291293

292294
context["generate_nav_html"] = generate_nav_html
293295
context["generate_toc_html"] = generate_toc_html

0 commit comments

Comments
 (0)