Skip to content
Snippets Groups Projects
Commit 6387a980 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent traceback

parent 20849b49
No related branches found
No related tags found
No related merge requests found
...@@ -1461,7 +1461,7 @@ def _get_img_direct(attrs): ...@@ -1461,7 +1461,7 @@ def _get_img_direct(attrs):
deadline = time.time() + 3 deadline = time.time() + 3
while True: while True:
if time.time() > deadline: if time.time() > deadline:
log.debug('Timeout loading image %s ' % attrs['src'] + str(ex)) log.debug('Timeout loading image %s ' % attrs['src'])
mem = '' mem = ''
alt = attrs.get('alt', '') alt = attrs.get('alt', '')
if alt: if alt:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment