Update inlinepatterns.py

This commit is contained in:
Benedikt Willi 2020-04-07 14:37:38 +02:00 committed by GitHub
parent 8768a5a546
commit c1088492e0
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']