Skip to content

Commit b586d33

Browse files
committed
Return empty dict instead of null
1 parent 9fa3fd3 commit b586d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/search/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def _get_inner_hits_highlights(self, hit):
6969

7070
log.debug('API Search highlight: %s', pformat(highlight_dict))
7171
return highlight_dict
72-
return None
72+
return {}
7373

7474

7575
class PageSearchAPIView(generics.ListAPIView):

0 commit comments

Comments
 (0)