Skip to content

Commit

Permalink
fix: improved handling of empty directories in get_dirs method
Browse files Browse the repository at this point in the history
  • Loading branch information
Ever3tt committed Dec 15, 2023
1 parent f879bbf commit 8191830
Showing 1 changed file with 3 additions and 1 deletion.
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()

0 comments on commit 8191830

Please sign in to comment.