mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
add try/except for startfile
This commit is contained in:
parent
491e7ea0d6
commit
dc71d16ac1
1 changed files with 4 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue