Might be worth try/except and reraise with a more informative message.