forked from retoor/snek
fix: guard against None user_template_path before appending to list
This commit is contained in:
+3
-1
@@ -265,7 +265,9 @@ class Application(BaseApplication):
|
||||
|
||||
if uid:
|
||||
user_template_path = await self.services.user.get_template_path(uid)
|
||||
template_paths.append(user_template_path)
|
||||
if user_template_path:
|
||||
template_paths.append(user_template_path)
|
||||
|
||||
|
||||
template_paths.append(self.template_path)
|
||||
return FileSystemLoader(template_paths)
|
||||
|
||||
Reference in New Issue
Block a user