From 24c19f2a85273e0cff3a59f9ba7f5cf47149c11f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 22 Mar 2015 19:04:34 +0530 Subject: [PATCH] Open With: Fix open with failing to get list of default programs on windows if the registry contains missing ProgIDs. Fixes #1434990 [Open with does not use OS list of available programs to open format](https://bugs.launchpad.net/calibre/+bug/1434990) --- src/calibre/utils/winreg/default_programs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/winreg/default_programs.py b/src/calibre/utils/winreg/default_programs.py index 93e2517577..c728aede04 100644 --- a/src/calibre/utils/winreg/default_programs.py +++ b/src/calibre/utils/winreg/default_programs.py @@ -200,7 +200,7 @@ def get_open_data(base, prog_id): k = Key(open_at=r'Software\Classes\%s' % prog_id, root=base) except WindowsError as err: if err.errno == winerror.ERROR_FILE_NOT_FOUND: - return None, None + return None, None, None with k: return k.get(sub_key=r'shell\open\command'), k.get(sub_key='DefaultIcon'), k.get_mui_string('FriendlyTypeName') or k.get()