log lookup error

This commit is contained in:
Matthias 2021-11-17 02:07:29 +01:00
parent 4ab464dc9e
commit fe96d07c1e
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -285,6 +285,7 @@ class PluginAppConfig(AppConfig):
models += [model._meta.model_name]
except LookupError:
# if an error occurs the app was never loaded right -> so nothing to do anymore
logger.debug(f'{app_name} App was not found during deregistering')
break
# unregister the models (yes, models are just kept in multilevel dicts)