mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
add try to capture possible error
This commit is contained in:
parent
8bd900d189
commit
2cebfca612
1 changed files with 10 additions and 11 deletions
|
@ -640,19 +640,18 @@ class DelugeGTK:
|
||||||
|
|
||||||
def open_folder(self, widget):
|
def open_folder(self, widget):
|
||||||
unique_ids = self.get_selected_torrent_rows()
|
unique_ids = self.get_selected_torrent_rows()
|
||||||
# try:
|
try:
|
||||||
for uid in unique_ids:
|
for uid in unique_ids:
|
||||||
if self.config.get("file_manager") == 0:
|
if self.config.get("file_manager") == 0:
|
||||||
command = "/usr/bin/konqueror"
|
command = "/usr/bin/konqueror"
|
||||||
if self.config.get("file_manager") == 1:
|
if self.config.get("file_manager") == 1:
|
||||||
command = "/usr/bin/nautilus"
|
command = "/usr/bin/nautilus"
|
||||||
if self.config.get("file_manager") == 2:
|
if self.config.get("file_manager") == 2:
|
||||||
command = "/usr/bin/thunar"
|
command = "/usr/bin/thunar"
|
||||||
# print "command %s uid %i dir %s\n" %(command, uid, self.manager.unique_IDs[uid].save_dir)
|
|
||||||
os.system('%s %s' %(command, self.manager.unique_IDs[uid].save_dir))
|
os.system('%s %s' %(command, self.manager.unique_IDs[uid].save_dir))
|
||||||
self.update()
|
self.update()
|
||||||
# except KeyError:
|
except KeyError:
|
||||||
# pass
|
pass
|
||||||
|
|
||||||
def tor_start(self, widget):
|
def tor_start(self, widget):
|
||||||
unique_ids = self.get_selected_torrent_rows()
|
unique_ids = self.get_selected_torrent_rows()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue