Fix exception handling and name typo

Don't catch an exception only to raise it again from somewhere else in the stack

Replaced ParseError -> IOError

Typo: ec <-> eg