Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
DNS testing tools
Remoh
Commits
e6c00acf
Commit
e6c00acf
authored
Jul 27, 2020
by
Alexandre
Browse files
Catch OpenSSL.SSL.SysCallError, fixes #27
parent
c73abc61
Changes
2
Hide whitespace changes
Inline
Side-by-side
homer.py
View file @
e6c00acf
...
...
@@ -481,6 +481,10 @@ class ConnectionDoT(Connection):
if
self
.
verbose
:
print
(
"Cannot connect"
)
return
False
except
OpenSSL
.
SSL
.
SysCallError
as
e
:
if
self
.
verbose
:
error
(
f
"OpenSSL error:
{
e
.
args
[
1
]
}
"
,
exit
=
False
)
return
False
except
OpenSSL
.
SSL
.
Error
as
e
:
if
self
.
verbose
:
print
(
f
"OpenSSL error:
{
', '
.
join
(
err
[
0
][
2
]
for
err
in
e
.
args
)
}
"
)
...
...
tests.yaml
View file @
e6c00acf
...
...
@@ -530,6 +530,22 @@ tests:
partstderr
:
'
Key
error'
-
exe
:
'
./homer.py'
name
:
'
[dot][exception]
Catch
OpenSSL.SSL.SysCallError'
markers
:
-
'
dot'
-
'
exception'
-
'
forceIPv4'
args
:
-
'
--dot'
-
'
--v4only'
-
'
--verbose'
-
'
dnsotls.lab.nic.cl'
-
'
wikipedia.org'
retcode
:
1
partstderr
:
'
OpenSSL
error:
Unexpected
EOF'
################################################################################
-
exe
:
'
./homer.py'
...
...
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