8000 Catch a ValueError in order to load custom templates by Davide-sd · Pull Request #6383 · holoviz/panel · GitHub
[go: up one dir, main page]

Skip to content

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
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0