Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch a ValueError in order to load custom templates #6383

Merged
merged 1 commit into from
Feb 24, 2024

Conversation

Davide-sd
Copy link
Contributor

Solves issue #6275

When a custom template is created (for example, based on BootstrapTemplate), a bunch of files could be saved in some sub-folder on the disk (the .html template file, the .css file, the __init__.py file).

Latest version of panel is unable to load them, raising a ValueError.

This PR catches that ValueError, forcing the load to occur with parse_template. This makes custom templates working again.

@philippjfr
Copy link
Member

Really appreciate it, thanks!

@philippjfr philippjfr merged commit 3e736f4 into holoviz:main Feb 24, 2024
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants