mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Fixes #5919
This commit is contained in:
parent
0a4cdd7fb3
commit
b0ac34caf1
3 changed files with 4 additions and 4 deletions
|
|
@ -34,7 +34,7 @@ class Connector(GenericConnector):
|
|||
|
||||
try:
|
||||
self.connector = psycopg2.connect(host=self.hostname, user=self.user, password=self.password, database=self.db, port=self.port)
|
||||
except psycopg2.OperationalError as ex:
|
||||
except (psycopg2.OperationalError, UnicodeDecodeError) as ex:
|
||||
raise SqlmapConnectionException(getSafeExString(ex))
|
||||
|
||||
self.connector.set_client_encoding('UNICODE')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue