Skip to content

Commit

Permalink
fix output mimetype assuming string
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Sep 1, 2021
1 parent 1635529 commit 9e9dc23
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 9e9dc23

Please sign in to comment.