From 3bae54056ff680c4a20f63eaca1cc87274eb64fa Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Thu, 30 Jun 2011 11:23:12 +0100 Subject: [PATCH] Prevent exception if removing from calibre a library that does not exist on the file system. --- src/calibre/gui2/actions/choose_library.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/actions/choose_library.py b/src/calibre/gui2/actions/choose_library.py index f96a261790..b233575fa2 100644 --- a/src/calibre/gui2/actions/choose_library.py +++ b/src/calibre/gui2/actions/choose_library.py @@ -260,7 +260,8 @@ class ChooseLibraryAction(InterfaceAction): 'The files remain on your computer, if you want ' 'to delete them, you will have to do so manually.') % loc, show=True) - open_local_file(loc) + if os.path.exists(loc): + open_local_file(loc) def backup_status(self, location): dirty_text = 'no'