Changed raising error to logging for get_block method