From ec4b1c659f1b9cb18c4cb995c0a86d7a6129f755 Mon Sep 17 00:00:00 2001 From: erenup Date: Wed, 28 Aug 2019 16:50:40 +0800 Subject: [PATCH] logging truth error --- examples/single_model_scripts/utils_multiple_choice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/single_model_scripts/utils_multiple_choice.py b/examples/single_model_scripts/utils_multiple_choice.py index 6a9fa0e64f..61235ad703 100644 --- a/examples/single_model_scripts/utils_multiple_choice.py +++ b/examples/single_model_scripts/utils_multiple_choice.py @@ -248,7 +248,8 @@ class ArcProcessor(DataProcessor): elif truth in "1234": return int(truth) - 1 else: - logger.info("truth ERROR!") + logger.info("truth ERROR! %s", str(truth)) + return None examples = [] three_choice = 0