Skip to content

Commit

Permalink
Merge pull request #626 from geopython/merge-pr-623-mimetype-none
Browse files Browse the repository at this point in the history
fix output mimetype assuming string
  • Loading branch information
cehbrecht authored Sep 20, 2021
2 parents 6e609c2 + fd61022 commit a807621
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pywps/app/Process.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,10 @@ def setup_outputs_from_wps_request(self, wps_request):
for wps_outpt in wps_request.outputs:

is_reference = wps_request.outputs[wps_outpt].get('asReference', 'false')
mimetype = wps_request.outputs[wps_outpt].get('mimetype', None)
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 a807621

Please sign in to comment.