From 843126702da64e36ca5046b9db28b59dfa97e94d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 3 Dec 2018 23:12:45 +0100 Subject: [PATCH] Fixes #3392 --- lib/controller/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 69e03c5cd..aee960b62 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -1530,7 +1530,7 @@ def checkConnection(suppressOutput=False): except socket.gaierror: errMsg = "host '%s' does not exist" % conf.hostname raise SqlmapConnectionException(errMsg) - except socket.error, ex: + except (socket.error, UnicodeError), ex: errMsg = "problem occurred while " errMsg += "resolving a host name '%s' ('%s')" % (conf.hostname, getSafeExString(ex)) raise SqlmapConnectionException(errMsg)