diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-12-01 11:07:36 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-12-01 11:07:36 -0500 |
commit | 1af28d8a79aef254af726f0a2aae6348a1f44534 (patch) | |
tree | 4976025f8ec95104b939e7b0a3ffdeffce4a2808 | |
parent | 3d36ab6841811c6de8535c2705edac9cdd683a7b (diff) | |
download | kutter-1af28d8a79aef254af726f0a2aae6348a1f44534.tar.gz kutter-1af28d8a79aef254af726f0a2aae6348a1f44534.tar.xz kutter-1af28d8a79aef254af726f0a2aae6348a1f44534.zip |
webhooks: Improve python3 compatibility
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/webhooks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/webhooks.py b/klippy/webhooks.py index 09efbaec..24613b04 100644 --- a/klippy/webhooks.py +++ b/klippy/webhooks.py @@ -288,7 +288,7 @@ class WebHooks: self._endpoints[path] = callback 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): client_info = web_request.get_dict('client_info', None) |