Update inlinepatterns.py

This commit is contained in:
Benedikt Willi 2022-08-15 17:18:39 +02:00 committed by GitHub
parent d216b6eb68
commit 477d04541c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ class OEmbedLinkPattern(Pattern):
def handleMatch(self, match): def handleMatch(self, match):
html = self.get_oembed_html_for_match(match) html = self.get_oembed_html_for_match(match)
LOG.info(html) LOG.warn(html)
if html is None: if html is None:
return None return None
else: else:
@ -29,7 +29,7 @@ class OEmbedLinkPattern(Pattern):
def get_oembed_html_for_match(self, match): def get_oembed_html_for_match(self, match):
url = match.group(3).strip() url = match.group(3).strip()
LOG.info(url) LOG.warn(url)
try: try:
response = self.consumer.embed(url) response = self.consumer.embed(url)
except oembed.OEmbedNoEndpoint: except oembed.OEmbedNoEndpoint: