File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
python/plugins/db_manager/db_plugins/postgis Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def __init__(self, uri):
6060
6161 expandedConnInfo = self ._connectionInfo ()
6262 try :
63- self .connection = psycopg2 .connect (expandedConnInfo . encode ( 'utf-8' ) )
63+ self .connection = psycopg2 .connect (expandedConnInfo )
6464 except self .connection_error_types () as e :
6565 err = unicode (e )
6666 uri = self .uri ()
@@ -79,7 +79,7 @@ def __init__(self, uri):
7979
8080 newExpandedConnInfo = uri .connectionInfo (True )
8181 try :
82- self .connection = psycopg2 .connect (newExpandedConnInfo . encode ( 'utf-8' ) )
82+ self .connection = psycopg2 .connect (newExpandedConnInfo )
8383 QgsCredentials .instance ().put (conninfo , username , password )
8484 except self .connection_error_types () as e :
8585 if i == 2 :
You can’t perform that action at this time.
0 commit comments