Replace "except Exception:" with "except ValueError:".
Rename CoreError to Error.