mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
remove coverage where it does not make sense
This commit is contained in:
parent
38cb557baf
commit
43179bbfd5
@ -144,7 +144,8 @@ class PluginSettingDetail(generics.RetrieveUpdateAPIView):
|
|||||||
plugin = registry.get_plugin(plugin_slug)
|
plugin = registry.get_plugin(plugin_slug)
|
||||||
|
|
||||||
if plugin is None:
|
if plugin is None:
|
||||||
raise NotFound(detail=f"Plugin '{plugin_slug}' not found")
|
# This only occurs if the plugin mechanism broke
|
||||||
|
raise NotFound(detail=f"Plugin '{plugin_slug}' not found") # pragma: no cover
|
||||||
|
|
||||||
settings = getattr(plugin, 'SETTINGS', {})
|
settings = getattr(plugin, 'SETTINGS', {})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user