From a1899bf582c5de73fd0b5d27c0b51f8c6718a4fa Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Wed, 23 Aug 2023 21:12:59 +0200 Subject: [PATCH] Fix for #2603 (Kobo UserKey in request missing due to no kobo account) --- cps/kobo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/kobo.py b/cps/kobo.py index 1655fb5e..47cc4bda 100644 --- a/cps/kobo.py +++ b/cps/kobo.py @@ -1047,7 +1047,7 @@ def make_calibre_web_auth_response(): "RefreshToken": RefreshToken, "TokenType": "Bearer", "TrackingId": str(uuid.uuid4()), - "UserKey": content['UserKey'], + "UserKey": content.get('UserKey',""), } ) )