Skip to content
Snippets Groups Projects
Commit 8e2ad109 authored by Romain DEP.'s avatar Romain DEP.
Browse files

[preview] catch type error when clen is None

parent df04516e
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ def _get_http_head_direct(url):
clen = f.headers['Content-Length']
try:
clen = int(clen)
except ValueError:
except (TypeError, ValueError):
pass
return (ctype, clen)
......
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