Prevent exception if removing from calibre a library that does not exist on the file system.

This commit is contained in:
Charles Haley 2011-06-30 11:23:12 +01:00
parent e0eaf64f13
commit 3bae54056f

View File

@ -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'