Skip to content

Commit b960314

Browse files
committed
Merge branch 'master' into vires-d52
2 parents eee8457 + 23dfcf8 commit b960314

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eoxserver/services/ows/wps/parameters/response_form.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,11 @@ def __init__(self, lineage=False, status=False, store_response=False):
9898
self.store_response = store_response
9999

100100
def __reduce__(self): # NOTE: needed for correct async-WPS request pickling
101+
# NOTE: The items must be an iterator!
102+
# See https://docs.python.org/3/library/pickle.html#object.__reduce__
101103
return (
102104
self.__class__, (self.lineage, self.status, self.store_response),
103-
None, None, self.items()
105+
None, None, iter(self.items()),
104106
)
105107

106108
def __str__(self):

0 commit comments

Comments
 (0)