From dc71d16ac179f35324e91b5ce5f0c67ae74f42dc Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Fri, 14 Sep 2007 22:18:06 +0000 Subject: [PATCH] add try/except for startfile --- plugins/TorrentFiles/tab_files.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/TorrentFiles/tab_files.py b/plugins/TorrentFiles/tab_files.py index 31bc8464a..68a7db4bf 100644 --- a/plugins/TorrentFiles/tab_files.py +++ b/plugins/TorrentFiles/tab_files.py @@ -95,7 +95,10 @@ class FilesTabManager(FilesBaseManager): file_name = self.file_store.get_value( self.file_store.get_iter(child_path), 0) if windows_check(): - os.startfile(os.path.join(save_dir, file_name)) + try: + os.startfile(os.path.join(save_dir, file_name)) + except WindowsError: + pass else: exec_command(self.file_viewer, os.path.join(save_dir, file_name))