Skip to content

Commit

Permalink
Merge pull request #5990 from tomachalek/dh_fix
Browse files Browse the repository at this point in the history
Fix - handle situation when dispatch_hooks is not installed
  • Loading branch information
tomachalek authored Aug 7, 2023
2 parents 6ffda62 + 3c2a8e6 commit f1c89e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/action/model/corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ async def _restore_prev_query_params(self, req_args: Union[RequestArgsProxy, JSO
if len(url_q) > 0 and query_persistence.is_valid_id(url_q[0]):
self._q_code = url_q[0][1:]
aqdata = await query_persistence.open(self._q_code)
self._active_q_data = await dh.transform_stored_query_data(aqdata)
self._active_q_data = await dh.transform_stored_query_data(aqdata) if dh is not None else aqdata
# !!! must create a copy here otherwise _q_data (as prev query)
# will be rewritten by self.args.q !!!
if self._active_q_data is not None:
Expand Down

0 comments on commit f1c89e9

Please sign in to comment.