From 538d4f81af50643896ee560a8c9a7a819fc33f7f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 4 Apr 2025 11:08:38 +0530 Subject: [PATCH] Fix #2106205 [Calibre 8,2 show an Unhandled Exception when you try to open book filesd Nu](https://bugs.launchpad.net/calibre/+bug/2106205) --- src/calibre/gui2/book_details.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/book_details.py b/src/calibre/gui2/book_details.py index 77f6933f1a..ce0661ef5d 100644 --- a/src/calibre/gui2/book_details.py +++ b/src/calibre/gui2/book_details.py @@ -1480,7 +1480,7 @@ class BookDetails(DetailsLayout, DropMixin): # {{{ if typ == 'action': data = json_loads(from_hex_bytes(val)) - if data['url'] == NO_SEARCH_LINK: + if data.get('url') == NO_SEARCH_LINK: return dt = data['type'] if dt == 'search':