From 9e9dc236a96c986312b1987b4c94fa0c3bafbe79 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Wed, 1 Sep 2021 13:07:43 -0400 Subject: [PATCH] fix output mimetype assuming string --- pywps/app/Process.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pywps/app/Process.py b/pywps/app/Process.py index 2911caa3e..4d15c4d8c 100644 --- a/pywps/app/Process.py +++ b/pywps/app/Process.py @@ -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':