fix indentation

This commit is contained in:
Matthias 2021-11-14 23:09:42 +01:00
parent 9ecf9603d6
commit eb02a85154
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -194,10 +194,10 @@ class PluginAppConfig(AppConfig):
def _get_plugin_path(self, plugin): def _get_plugin_path(self, plugin):
try: try:
# for local path plugins # for local path plugins
plugin_path = '.'.join(pathlib.Path(plugin.path).relative_to(settings.BASE_DIR).parts) plugin_path = '.'.join(pathlib.Path(plugin.path).relative_to(settings.BASE_DIR).parts)
except ValueError: except ValueError:
# plugin is shipped as package # plugin is shipped as package
plugin_path = plugin.PLUGIN_NAME plugin_path = plugin.PLUGIN_NAME
return plugin_path return plugin_path