2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-30 18:50:53 +00:00

do not cover pacakge code - is not CI'd

This commit is contained in:
Matthias
2022-05-06 01:52:32 +02:00
parent 1dee578907
commit baf7e4505e
3 changed files with 3 additions and 3 deletions

View File

@ -503,7 +503,7 @@ class PluginsRegistry:
try:
# for local path plugins
plugin_path = '.'.join(pathlib.Path(plugin.path).relative_to(settings.BASE_DIR).parts)
except ValueError:
except ValueError: # pragma: no cover
# plugin is shipped as package
plugin_path = plugin.PLUGIN_NAME
return plugin_path