Merge pull request #2948 from SchrodingersGat/column-extraction-fix

Check for empty column name in data importer
This commit is contained in:
Oliver authored and GitHub committed 2022-05-09 08:15:00 +10:00
commit 931081cb4f
1 file changed
+4 -1
+4 -1
View File
@@ -421,7 +421,10 @@ class DataFileUploadSerializer(serializers.Serializer):
- Fuzzy match - Fuzzy match
""" """
column_name = column_name.strip() if not column_name:
return None
column_name = str(column_name).strip()
column_name_lower = column_name.lower() column_name_lower = column_name.lower()