Improper indentation caused the error handler to be an empty function.