ckan / ckanext-qa

CKAN QA Extension
MIT License
26 stars 51 forks source link

qa mistakes json for txt #66

Open chuniman opened 5 years ago

chuniman commented 5 years ago

qa isn't detecting the json format on json files we upload and mistakes them for .txt which he later mistakes for csv

i'm gonna put the error down here, any help is appreciated

2019-04-11 16:51:29,678 INFO [ckanext.qa] Sniffing file format of: /var/local/ckan/default/resources/d03/232/17-3c0b-4bbe-ac30-d4c67ef30199 2019-04-11 16:51:29,684 INFO [ckanext.qa] Magic detects file as: text/plain 2019-04-11 16:51:29,686 INFO [ckanext.qa] Mimetype translates to filetype: TXT 2019-04-11 16:51:29,692 INFO [ckanext.qa] Not JSON - 0 matches 2019-04-11 16:51:29,763 INFO [ckanext.qa] Is CSV because 1.6 cells per row (56 cells, 36 rows) 2019-04-11 16:51:29,764 ERROR [ckanext.qa] Unexpected error while calculating openness score AttributeError: 'NoneType' object has no attribute 'ugettext'