Fix migration path for non-existing fonts

This commit is contained in:
FinnStutzenstein 2020-06-12 07:26:29 +02:00
parent 438b3558bf
commit 081f13e2ff
No known key found for this signature in database
GPG Key ID: 9042F605C6324654

View File

@ -22,7 +22,10 @@ def change_logo_and_font_configs(apps, schema_editor):
pass
for key in logo_font_keys:
try:
config = ConfigStore.objects.get(key=key)
except ConfigStore.DoesNotExist:
continue
logo = config.value
path = logo.get("path")
if path and path.startswith("/media/file/"):