Fix formatting string when oEmbed errors occur. (#11061)
This commit is contained in:
parent
333d6f4e84
commit
1db9282dfa
|
@ -0,0 +1 @@
|
||||||
|
Fix a bug introduced in Synapse v1.44.0 when logging errors during oEmbed processing.
|
|
@ -191,7 +191,7 @@ class OEmbedProvider:
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# Trap any exception and let the code follow as usual.
|
# Trap any exception and let the code follow as usual.
|
||||||
logger.warning(f"Error parsing oEmbed metadata from {url}: {e:r}")
|
logger.warning("Error parsing oEmbed metadata from %s: %r", url, e)
|
||||||
open_graph_response = {}
|
open_graph_response = {}
|
||||||
cache_age = None
|
cache_age = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue