Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Raise an exception when connection is not specified
  • Loading branch information
nyalldawson committed Mar 17, 2020
1 parent 3c3efe5 commit cd2caf8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/gdal/ogr2ogrtopostgislist.py
Expand Up @@ -199,6 +199,9 @@ def groupId(self):

def getConsoleCommands(self, parameters, context, feedback, executing=True):
connection_name = self.parameterAsConnectionName(parameters, self.DATABASE, context)
if not connection_name:
raise QgsProcessingException(
self.tr('No connection specified'))

# resolve connection details to uri
try:
Expand Down

0 comments on commit cd2caf8

Please sign in to comment.