raise custom exception when export is in a bad state
Merge pull request #92 from dimagi/custom-exception

raise custom exception when export is in a bad state