petl-developers / petl

Python Extract Transform and Load Tables of Data
MIT License
1.25k stars 193 forks source link

recast dislikes empty tables #297

Open CyberIntel opened 10 years ago

CyberIntel commented 10 years ago

Urgency: LOW Error Message: "AssertionError: invalid value field: value" Code Snippet (summarised): petl.look(petl.recast(petl.empty())) Suggestion: A more intuitive error code or catch this exception

alimanfoo commented 10 years ago

Thanks for reporting this, I'll think of a good way to handle. FWIW there are many places where exception handling and/or error messages could be improved, so feel free to keep posting.

On Tuesday, October 28, 2014, CyberIntel notifications@github.com wrote:

Urgency: LOW Error Message: "AssertionError: invalid value field: value" Code Snippet (summarised): petl.look(petl.recast(petl.empty())) Suggestion: A more intuitive error code or catch this exception

Reply to this email directly or view it on GitHub https://github.com/alimanfoo/petl/issues/297.

Alistair Miles Head of Epidemiological Informatics Centre for Genomics and Global Health http://cggh.org The Wellcome Trust Centre for Human Genetics Roosevelt Drive Oxford OX3 7BN United Kingdom Web: http://purl.org/net/aliman Email: alimanfoo@gmail.com Tel: +44 (0)1865 287721