webhooks: Improve python3 compatibility

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-12-01 11:07:36 -05:00
parent 3d36ab6841
commit 1af28d8a79
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ class WebHooks:
self._endpoints[path] = callback self._endpoints[path] = callback
def _handle_list_endpoints(self, web_request): def _handle_list_endpoints(self, web_request):
web_request.send({'endpoints': self._endpoints.keys()}) web_request.send({'endpoints': list(self._endpoints.keys())})
def _handle_info_request(self, web_request): def _handle_info_request(self, web_request):
client_info = web_request.get_dict('client_info', None) client_info = web_request.get_dict('client_info', None)