We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6deac99 commit 597ee06Copy full SHA for 597ee06
sphinxext/opengraph/socialcards.py
@@ -100,12 +100,12 @@ def create_social_card(
100
101
# If image is an SVG replace it with None
102
if impath.suffix.lower() == ".svg":
103
- LOGGER.warn(f"[Social card] {img} cannot be an SVG image, skipping...")
+ LOGGER.warning(f"[Social card] %s cannot be an SVG image, skipping...", img)
104
kwargs_fig[img] = None
105
106
# If image doesn't exist, throw a warning and replace with none
107
if not impath.exists():
108
- LOGGER.warn(f"[Social card]: {img} file doesn't exist, skipping...")
+ LOGGER.warning(f"[Social card]: %s file doesn't exist, skipping...", img)
109
110
111
# These are passed directly from the user configuration to our plotting function
0 commit comments