From 21846c2af4ffc7de830534e31772eefad11f8bd3 Mon Sep 17 00:00:00 2001 From: Lova Andriarimalala <43842786+Xpirix@users.noreply.github.com> Date: Tue, 3 Dec 2024 17:50:06 +0300 Subject: [PATCH] Prioritize the experimental flag in the metadata --- qgis-app/plugins/forms.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/qgis-app/plugins/forms.py b/qgis-app/plugins/forms.py index cd8b32ec..91b434ce 100644 --- a/qgis-app/plugins/forms.py +++ b/qgis-app/plugins/forms.py @@ -122,16 +122,6 @@ def clean(self): package = self.cleaned_data.get("package") try: cleaned_data = validator(package) - if ( - "experimental" in dict(cleaned_data) - and "experimental" in self.cleaned_data - and dict(cleaned_data)["experimental"] - != self.cleaned_data["experimental"] - ): - msg = _( - "The 'experimental' flag in the form does not match the 'experimental' flag in the plugins package metadata.
" - ) - raise ValidationError(mark_safe("%s" % msg)) self.cleaned_data.update(cleaned_data) except ValidationError as e: msg = _(