Skip to content

Commit 8968b63

Browse files
committed
from unicode to str
1 parent 4f415c5 commit 8968b63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/db_manager/db_plugins/postgis/connector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(self, uri):
6767
self.connection = psycopg2.connect(expandedConnInfo)
6868
except self.connection_error_types() as e:
6969
# get credentials if cached or asking to the user no more than 3 times
70-
err = unicode(e)
70+
err = str(e)
7171
uri = self.uri()
7272
conninfo = uri.connectionInfo(False)
7373

@@ -89,7 +89,7 @@ def __init__(self, uri):
8989
except self.connection_error_types() as e:
9090
if i == 2:
9191
raise ConnectionError(e)
92-
err = unicode(e)
92+
err = str(e)
9393
finally:
9494
# clear certs for each time trying to connect
9595
self._clearSslTempCertsIfAny(newExpandedConnInfo)

0 commit comments

Comments
 (0)