Fix dir does not exist.

This commit is contained in:
Andrew 2022-11-30 15:51:12 -05:00
parent 46740f7cbf
commit b2182919ff

View File

@ -860,6 +860,12 @@ class PanelHandler(BaseHandler):
page_data["backgrounds"].append(cached_split[1])
if "login_1.jpg" not in page_data["backgrounds"]:
page_data["backgrounds"].append("login_1.jpg")
self.helper.ensure_dir_exists(
os.path.join(
self.controller.project_root,
"app/frontend/static/assets/images/auth/custom",
)
)
for item in os.listdir(
os.path.join(
self.controller.project_root,