Skip to content

Commit

Permalink
Merge pull request #623 from fmigneault/fix-mimetype-none
Browse files Browse the repository at this point in the history
Fix WPS execute outputs parsing assuming string
  • Loading branch information
cehbrecht authored Sep 9, 2021
2 parents 1635529 + 9e9dc23 commit b5eb38b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pywps/app/Process.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ def setup_outputs_from_wps_request(self, wps_request):

is_reference = wps_request.outputs[wps_outpt].get('asReference', 'false')
mimetype = wps_request.outputs[wps_outpt].get('mimetype', '')
if not isinstance(mimetype, str):
mimetype = ''

if is_reference.lower() == 'true':
# check if store is supported
if self.store_supported == 'false':
Expand Down

0 comments on commit b5eb38b

Please sign in to comment.