From 0c226161f25de70e79108b6bb20c129c24750534 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 21 Apr 2020 20:43:24 +0530 Subject: [PATCH] Open with macOS: Fix error when trying to select executable instead of bundle --- src/calibre/gui2/open_with.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/open_with.py b/src/calibre/gui2/open_with.py index 7f77c43297..042b3e7bd1 100644 --- a/src/calibre/gui2/open_with.py +++ b/src/calibre/gui2/open_with.py @@ -155,7 +155,7 @@ elif isosx: return sort_key(entry.get('name') or '') def finalize_entry(entry): - entry['extensions'] = tuple(entry['extensions']) + entry['extensions'] = tuple(entry.get('extensions', ())) data = get_icon(entry.pop('icon_file', None), as_data=True, pixmap_to_data=pixmap_to_data) if data: entry['icon_data'] = data