Bug #75699
import CSV événements : Error: new-line character seen in unquoted field - do you need to open the file in universal-newline mode?
Status:
Nouveau
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
22 March 2023
Due date:
% Done:
0%
Estimated time:
Patch proposed:
No
Planning:
No
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/108457/
Error: new-line character seen in unquoted field - do you need to open the file in universal-newline mode? (7 additional frame(s) were not displayed) ... File "django/forms/forms.py", line 175, in is_valid return self.is_bound and not self.errors File "django/forms/forms.py", line 170, in errors self.full_clean() File "django/forms/forms.py", line 372, in full_clean self._clean_fields() File "django/forms/forms.py", line 393, in _clean_fields value = getattr(self, 'clean_%s' % name)() File "chrono/manager/forms.py", line 1147, in clean_events_csv_file for i, csvline in enumerate(csv.reader(StringIO(content), dialect=dialect)):