raise error when tzinfo was not valid or none