# HG changeset patch # User Mads Kiilerich # Date 2019-11-23 23:16:20 # Node ID a7427a53cccc486b1cb1b8f99c3cae0e949606d2 # Parent 096ce7327aad51088f0da344a55bdf3dd83e5609 home: don't send _changeset_cache in repo_switcher_data result It is unused, and it is problematic to serialize bytes in json ... and it is especially obvious in py3. diff --git a/kallithea/controllers/home.py b/kallithea/controllers/home.py --- a/kallithea/controllers/home.py +++ b/kallithea/controllers/home.py @@ -93,6 +93,10 @@ class HomeController(BaseController): ], }] + for res_dict in res: + for child in (res_dict['children']): + child['obj'].pop('_changeset_cache', None) # bytes cannot be encoded in json ... but this value isn't relevant on client side at all ... + data = { 'more': False, 'results': res,