diff --git a/src/pretix/control/views/global_settings.py b/src/pretix/control/views/global_settings.py index 9a9ef9e63..005e92633 100644 --- a/src/pretix/control/views/global_settings.py +++ b/src/pretix/control/views/global_settings.py @@ -236,6 +236,14 @@ class LicenseCheckView(StaffMemberRequiredMixin, FormView): for entry_point in pkg_resources.iter_entry_points(group='pretix.plugin', name=None): license, url = self._get_license_for_pkg(entry_point.dist.key) + if not license or not any(l in license for l in ('Apache', 'MIT', 'BSD', 'pretix Enterprise', 'GPL')): + res.append(( + 'muted', 'warning', + _('We found the plugin "{plugin}" with license "{license}" which this tool does not know about and ' + 'therefore cannot give any recommendations.').format(plugin=entry_point.dist.key, license=license) + )) + continue + if not input.get('plugins_enterprise') and 'pretix Enterprise' in license: res.append(( 'danger', 'exclamation-circle', @@ -257,11 +265,4 @@ class LicenseCheckView(StaffMemberRequiredMixin, FormView): 'plugin "{plugin}" with license "{license}".').format(plugin=entry_point.dist.key, license=license) )) - if not license or not any(l in license for l in ('Apache', 'MIT', 'BSD', 'pretix Enterprise', 'GPL')): - res.append(( - 'muted', 'warning', - _('We found the plugin "{plugin}" with license "{license}" which this tool does not know about and ' - 'therefore cannot give any recommendations.').format(plugin=entry_point.dist.key, license=license) - )) - return res