Fix typecasting bug when using utils.get_config to get theme (#1298)

* Fix a type issue with config values. Related to #929
This commit is contained in:
Alan
2020-03-30 01:17:29 -04:00
committed by GitHub
parent d80051bcda
commit 76af4419b6

View File

@@ -96,7 +96,7 @@ class ThemeLoader(FileSystemLoader):
return super(ThemeLoader, self).get_source(environment, template)
# Load regular theme data
theme = utils.get_config("ctf_theme")
theme = str(utils.get_config("ctf_theme"))
template = "/".join([theme, "templates", template])
return super(ThemeLoader, self).get_source(environment, template)