forked from CGM_Public/pretix_original
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)
|
||||
if reader._had_duplicates:
|
||||
if reader and reader._had_duplicates:
|
||||
messages.warning(
|
||||
self.request,
|
||||
_(
|
||||
|
||||
Reference in New Issue
Block a user