mirror of
https://github.com/Hopiu/python-markdown-oembed.git
synced 2026-03-16 22:10:24 +00:00
Merge pull request #1 from Hopiu/master
Thanks for the fix, Hopi! Merging fists into inlinepatterns.py
This commit is contained in:
commit
d510e7f081
1 changed files with 2 additions and 0 deletions
|
|
@ -32,5 +32,7 @@ class OEmbedLinkPattern(Pattern):
|
||||||
response = self.consumer.embed(url)
|
response = self.consumer.embed(url)
|
||||||
except oembed.OEmbedNoEndpoint:
|
except oembed.OEmbedNoEndpoint:
|
||||||
return None
|
return None
|
||||||
|
except Exception as e:
|
||||||
|
return None
|
||||||
else:
|
else:
|
||||||
return response['html']
|
return response['html']
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue