Merge pull request #5412 from FinnStutzenstein/fixMigrationPath

Fix migration path for non-existing fonts
This commit is contained in:
Finn Stutzenstein 2020-06-12 08:13:11 +02:00 committed by GitHub
commit 5239e40858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,10 @@ def change_logo_and_font_configs(apps, schema_editor):
pass
for key in logo_font_keys:
config = ConfigStore.objects.get(key=key)
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/"):