diff --git a/ykman-rpc/rpc/device.py b/ykman-rpc/rpc/device.py index 72fec434..b3dac9f8 100644 --- a/ykman-rpc/rpc/device.py +++ b/ykman-rpc/rpc/device.py @@ -101,7 +101,7 @@ class RootNode(RpcNode): @action(closes_child=False) def qr(self, params, event, signal): - return dict(result=scan_qr(params["image"])) + return dict(result=scan_qr(params.get("image"))) class ReadersNode(RpcNode):