mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Added an additional debug message in case of failed request
This commit is contained in:
parent
9c314b8d90
commit
e542c6801e
|
@ -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(')', '\)')
|
||||
|
|
Loading…
Reference in a new issue