Skip to content

Commit ecf7fc2

Browse files
to squash
1 parent 0cda486 commit ecf7fc2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

qgis-app/plugins/validator.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from django.forms import ValidationError
1919
from django.utils.translation import gettext_lazy as _
2020

21-
2221
PLUGIN_MAX_UPLOAD_SIZE = getattr(settings, "PLUGIN_MAX_UPLOAD_SIZE", 25000000) # 25 mb
2322
PLUGIN_REQUIRED_METADATA = getattr(
2423
settings,
@@ -225,7 +224,6 @@ def validator(package, is_new: bool = False):
225224
* New plugins package_name is PEP8 compliant
226225
227226
"""
228-
229227
try:
230228
if package.size > PLUGIN_MAX_UPLOAD_SIZE:
231229
raise ValidationError(
@@ -273,7 +271,6 @@ def validator(package, is_new: bool = False):
273271
% (forbidden_dir, zname)
274272
)
275273
)
276-
277274
bad_file = zip.testzip()
278275
if bad_file:
279276
zip.close()
@@ -501,4 +498,4 @@ def validator(package, is_new: bool = False):
501498
)
502499
% (k, e)
503500
)
504-
return checked_metadata
501+
return checked_metadata

0 commit comments

Comments
 (0)