Skip to content
Permalink
Browse files

from unicode to str

  • Loading branch information
luipir committed May 8, 2018
1 parent 4f415c5 commit 8968b63efd7975fca71d4d1e85a12cffa3c27556
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/db_manager/db_plugins/postgis/connector.py
@@ -67,7 +67,7 @@ def __init__(self, uri):
self.connection = psycopg2.connect(expandedConnInfo)
except self.connection_error_types() as e:
# get credentials if cached or asking to the user no more than 3 times
err = unicode(e)
err = str(e)
uri = self.uri()
conninfo = uri.connectionInfo(False)

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

0 comments on commit 8968b63

Please sign in to comment.
You can’t perform that action at this time.