We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b03f5 commit 5d059e2Copy full SHA for 5d059e2
shiny/ui/_theme.py
@@ -568,10 +568,7 @@ def check_is_valid_preset(preset: str | None) -> ShinyThemePreset:
568
def check_theme_pkg_installed(pkg: str, spec: str | None = None) -> None:
569
import importlib.util
570
571
- if spec is None:
572
- spec = pkg
573
-
574
- if importlib.util.find_spec(spec) is None:
+ if importlib.util.find_spec(spec or pkg) is None:
575
raise ImportError(
576
f"The '{pkg}' package is required to compile custom themes. "
577
'Please install it with `pip install {pkg}` or `pip install "shiny[theme]"`.',
0 commit comments