Skip to content
Permalink
Browse files

Raise an exception when connection is not specified

  • Loading branch information
nyalldawson committed Mar 16, 2020
1 parent 3c3efe5 commit cd2caf84f7c60f7fc4de93cc6a872f5cf8cdcfda
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/processing/algs/gdal/ogr2ogrtopostgislist.py
@@ -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:

0 comments on commit cd2caf8

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