Except as otherwise expressly provided in this Code, a person shall not be exempt from liability to punishment for any act on the ground of ignorance that such act is prohibited by law.