Skip to content

Commit

Permalink
fix: as-reference only supported in async mode
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Nov 13, 2018
1 parent 8246372 commit 1b000e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions owslib/wps.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,11 +704,11 @@ def buildRequest(self, identifier, inputs=[], output=None, mode=ASYNC, lineage=F
# keeping backward compability of output parameter
if isinstance(output, str):
self._add_output(
responseDocumentElement, output, asReference=True)
responseDocumentElement, output, asReference=_async)
elif isinstance(output, list):
for (identifier, as_reference) in output:
self._add_output(
responseDocumentElement, identifier, asReference=as_reference)
responseDocumentElement, identifier, asReference=as_reference and _async)
else:
raise Exception(
'output parameter is neither string nor list. output=%s' % output)
Expand Down

0 comments on commit 1b000e6

Please sign in to comment.