Typo in error handling

IOError vs. IOErrror