Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vladislav Yarmak
gajim-plugins
Commits
8e2ad109
Commit
8e2ad109
authored
Nov 04, 2017
by
Romain DEP.
Browse files
[preview] catch type error when clen is None
parent
df04516e
Changes
1
Hide whitespace changes
Inline
Side-by-side
url_image_preview/http_functions.py
View file @
8e2ad109
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment