Skip to content

Commit

Permalink
fix: improved handling of empty directories in get_dirs method (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ever3tt authored Jan 3, 2024
1 parent f879bbf commit bd10dc3
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 bd10dc3

Please sign in to comment.