Skip to content


Raise an exception if the necessary parameter was not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Apr 25, 2019
1 parent fdb6a2b commit e6ff7e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/plugins/processing/algs/qgis/
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,12 @@ def processAlgorithm(self, parameters, context, feedback):
output_format = self.outputs[self.parameterAsEnum(parameters, self.OUTPUT_FORMAT, context)]
if output_format == 'Directory':
output_dir = self.parameterAsString(parameters, self.OUTPUT_DIRECTORY, context)
if not output_dir:
raise QgsProcessingException('You need to specify output directory.'))
else: # MBTiles
output_file = self.parameterAsString(parameters, self.OUTPUT_FILE, context)
if not output_file:
raise QgsProcessingException('You need to specify output filename.'))
tile_width = 256
tile_height = 256

Expand Down

0 comments on commit e6ff7e0

Please sign in to comment.