Merge pull request #1 from Hopiu/master

Thanks for the fix, Hopi!  
Merging fists into inlinepatterns.py
This commit is contained in:
W.A.Flozart 2020-04-07 14:43:20 +02:00 committed by GitHub
commit d510e7f081
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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']