Skip to content

Commit

Permalink
Fix jupyterhub config theme retrieval.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouder committed Apr 8, 2024
1 parent 86b96f7 commit 3e410c4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions jhub_apps/service/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,8 @@ async def get_thumbnail_data_url(framework_name, thumbnail):

def get_theme(config):
"""This will extract theme variables from the JupyterHub config"""
if isinstance(config.theme, dict):
return config.theme.jupyterhub
elif isinstance(config.theme, LazyConfigValue):
return {}
if isinstance(config.JupyterHub.template_vars, dict):
return config.JupyterHub.template_vars
else:
return None
return None

0 comments on commit 3e410c4

Please sign in to comment.