File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 1818from django .forms import ValidationError
1919from django .utils .translation import gettext_lazy as _
2020
21-
2221PLUGIN_MAX_UPLOAD_SIZE = getattr (settings , "PLUGIN_MAX_UPLOAD_SIZE" , 25000000 ) # 25 mb
2322PLUGIN_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
You can’t perform that action at this time.
0 commit comments