don't import ParseError unconditionally

ParseError won't exist on all systems.  That's ok, where we were
catching it, we can just catch Exception.