Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
sbws
Commits
c2d3bb98
Commit
c2d3bb98
authored
Dec 12, 2018
by
juga
Browse files
scanner: refactor, remove unneded line
parent
7022ff30
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/core/scanner.py
View file @
c2d3bb98
...
...
@@ -40,9 +40,8 @@ def timed_recv_from_server(session, dest, byte_range):
try
:
# headers are merged with the session ones, not overwritten.
session
.
get
(
dest
.
url
,
headers
=
HTTP_GET_HEADERS
,
verify
=
dest
.
verify
)
except
requests
.
exceptions
.
ConnectionError
as
e
:
return
False
,
e
except
requests
.
exceptions
.
ReadTimeout
as
e
:
except
(
requests
.
exceptions
.
ConnectionError
,
requests
.
exceptions
.
ReadTimeout
)
as
e
:
return
False
,
e
end_time
=
time
.
time
()
return
True
,
end_time
-
start_time
...
...
Write
Preview
Supports
Markdown
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