Bayo Opadeyi added the comment:
Yes, the problem is that the file is not csv. The scenario is a web application
allowing people to upload csv files, but they can upload any files they like.
--
status: pending -> open
___
Python tracker
&l
Changes by Bayo Opadeyi :
--
title: csv.DictReader throws generic error when fieldnames is accessed on
non-text file -> csv.DictReader throws generic error when fieldnames is
accessed for non-text file
___
Python tracker
<http://bugs.pyth
New submission from Bayo Opadeyi:
If you use the csv.DictReader to open a non-text file and try to access
fieldnames on it, it crashes with a generic error instead of something specific.
--
messages: 263199
nosy: boyombo
priority: normal
severity: normal
status: open
title