Tweak/debug
This commit is contained in:
parent
7cf6027bf9
commit
b4e5bda62e
2 changed files with 6 additions and 12 deletions
5
app.py
5
app.py
|
@ -241,7 +241,10 @@ def get_attachment_url(url, size):
|
|||
|
||||
@app.template_filter()
|
||||
def get_og_image_url(url, size=100):
|
||||
return _get_file_url(url, size, Kind.OG_IMAGE)
|
||||
try:
|
||||
return _get_file_url(url, size, Kind.OG_IMAGE)
|
||||
except Exception:
|
||||
return ''
|
||||
|
||||
|
||||
@app.template_filter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue