simplify again the logic

(cherry picked from commit f003c0e712)
This commit is contained in:
Florent Daigniere
2024-07-29 20:33:32 +02:00
committed by Mergify
parent 745d26acf5
commit 6173f5e434
2 changed files with 5 additions and 5 deletions

View File

@@ -532,6 +532,7 @@ def isBadOrPwned(form):
def formatCSVField(field):
if not field.data:
field.data = ''
return
if isinstance(field.data,str):
data = field.data.replace(" ","").split(",")