remove coverage where it does not make sense

This commit is contained in:
Matthias 2022-05-15 01:07:50 +02:00
parent 38cb557baf
commit 43179bbfd5
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -144,7 +144,8 @@ class PluginSettingDetail(generics.RetrieveUpdateAPIView):
plugin = registry.get_plugin(plugin_slug)
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', {})