From 6aff6e11326406bdbeb854f0727d066d69e5c7ca Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sat, 21 Mar 2020 12:11:46 -0700 Subject: [PATCH] fixes #2271, sqlhtml changing dict, thanks macneiln --- gluon/sqlhtml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index ae4dbb5d..c0fb955e 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -1330,7 +1330,7 @@ class SQLFORM(FORM): # - user not trying to upload a new file # - there is existing file and user is not trying to delete it # this is because removing the file may not pass validation - for key in self.errors.keys(): + for key in list(self.errors): if key in self.table \ and self.table[key].type == 'upload' \ and request_vars.get(key, None) in (None, '') \