Skip to content
Permalink
Browse files

[dbmanager] Fix error when connecting to postgis db

Fixes #19240
  • Loading branch information
nyalldawson committed Jun 22, 2018
1 parent f0f50a1 commit 12efb8669e94eba342a9cdeb9fb0321ebfb88438
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/plugins/db_manager/db_plugins/postgis/plugin.py
@@ -85,7 +85,10 @@ def connect(self, parent=None):
service, host, port, database, username, password, authcfg = [settings.value(x, "", type=str) for x in settingsList]

useEstimatedMetadata = settings.value("estimatedMetadata", False, type=bool)
sslmode = settings.value("sslmode", QgsDataSourceUri.SslPrefer, type=int)
try:
sslmode = settings.value("sslmode", QgsDataSourceUri.SslPrefer, type=int)
except TypeError:
sslmode = QgsDataSourceUri.SslPrefer

settings.endGroup()

0 comments on commit 12efb86

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