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

fix: Improved handling of empty directories in get_dirs method #51

Merged
merged 1 commit into from
Jan 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion eox_theming/theming/template_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,6 @@ def get_dirs(self):
https://github.com/eduNEXT/edunext-platform/blob/master/openedx/core/djangoapps/theming/template_loaders.py#L39
instead of using the cached values of self.dirs on runtime.
"""
return ThemeFilesystemLoader.get_theme_template_sources()
theme_dirs = ThemeFilesystemLoader.get_theme_template_sources()

return theme_dirs if theme_dirs else super().get_dirs()