From e542c6801e69d7980f4277c64cd34561779578dd Mon Sep 17 00:00:00 2001 From: Frisk Date: Fri, 28 Jun 2019 22:47:36 +0200 Subject: [PATCH] Added an additional debug message in case of failed request --- rcgcdw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rcgcdw.py b/rcgcdw.py index 3e7aaa6..a33a69c 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -505,7 +505,7 @@ def embed_formatter(action, change, parsed_comment, categories): embed["image"]["url"] = img_info[0]["url"] additional_info_retrieved = True else: - pass + logging.warning("Request for additional image information have failed. The preview will not be shown.") if action == "upload/overwrite": if additional_info_retrieved: article_encoded = change["title"].replace(" ", "_").replace(')', '\)')