Skip to content

Commit 8431267

Browse files
committed
Fixes #3392
1 parent 65f227f commit 8431267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/controller/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,7 @@ def checkConnection(suppressOutput=False):
15301530
except socket.gaierror:
15311531
errMsg = "host '%s' does not exist" % conf.hostname
15321532
raise SqlmapConnectionException(errMsg)
1533-
except socket.error, ex:
1533+
except (socket.error, UnicodeError), ex:
15341534
errMsg = "problem occurred while "
15351535
errMsg += "resolving a host name '%s' ('%s')" % (conf.hostname, getSafeExString(ex))
15361536
raise SqlmapConnectionException(errMsg)

0 commit comments

Comments
 (0)