Graceful error handling for mis-named datamap csv headers #10
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
more info required
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
yulqen/datamaps#10
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
More error handling you could try with the same set of documents is when the datamap.cvs has incorrect headings. E.g. type something other than 'cell_ref' in column A heading. This will also cause a crash.
Cheers, Will.
Originally posted by @banillie in https://github.com/yulqen/datamaps/issues/9#issuecomment-689384783
as above datamap.csv heading needs to be
cellreferenceexactly or causes a crash.It would prob be best to actually change the requirement to
cell_referenceto be consistent with the other headers.Looking at the code,
cell_reference,cell_ref,cellref,cellreferenceshould all work.github.com/yulqen/bcompiler-engine@414a172992/engine/utils/extraction.py (L383)_good_cellref = ["cell_reference", "cell_ref", "cellref", "cellreference"]Will have to run some tests if you're seeing a problem - or put up the stacktrace so I can see what's going on.
Ok. I've tried those above combos and they work fine. I can't remember what the combo was that caused a crash, but it will have been different to those of course. so leave for now. thanks.
I think there are enough options the user can choose to name the field here, so closing.