From 5c56dab82f399e9a401f4f430bbe5442987d12ee Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Mon, 4 Dec 2023 10:21:28 +0100 Subject: [PATCH] fix files migration Signed-off-by: Marc 'risson' Schmitt --- lifecycle/system_migrations/tenant_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lifecycle/system_migrations/tenant_files.py b/lifecycle/system_migrations/tenant_files.py index f208db03c..90804350a 100644 --- a/lifecycle/system_migrations/tenant_files.py +++ b/lifecycle/system_migrations/tenant_files.py @@ -12,7 +12,7 @@ class Migration(BaseMigration): return not TENANT_MEDIA_ROOT.exists() def run(self): - TENANT_MEDIA_ROOT.mkdir() + TENANT_MEDIA_ROOT.mkdir(parents=True) for d in ("application-icons", "source-icons", "flow-backgrounds"): if (MEDIA_ROOT / d).exists(): (MEDIA_ROOT / d).rename(TENANT_MEDIA_ROOT / d)