mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Fix crash when imported CSV has invalid syntax (#5702)
This commit is contained in:
@@ -156,7 +156,7 @@ class BaseProcessView(AsyncAction, FormView):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
reader = parse_csv(self.file.file, 1024 * 1024, "replace", charset=charset)
|
reader = parse_csv(self.file.file, 1024 * 1024, "replace", charset=charset)
|
||||||
if reader._had_duplicates:
|
if reader and reader._had_duplicates:
|
||||||
messages.warning(
|
messages.warning(
|
||||||
self.request,
|
self.request,
|
||||||
_(
|
_(
|
||||||
|
|||||||
Reference in New Issue
Block a user