add try to capture possible error

This commit is contained in:
Marcos Pinto 2007-08-08 21:46:47 +00:00
parent 8bd900d189
commit 2cebfca612
1 changed files with 10 additions and 11 deletions

View File

@ -640,7 +640,7 @@ class DelugeGTK:
def open_folder(self, widget):
unique_ids = self.get_selected_torrent_rows()
# try:
try:
for uid in unique_ids:
if self.config.get("file_manager") == 0:
command = "/usr/bin/konqueror"
@ -648,11 +648,10 @@ class DelugeGTK:
command = "/usr/bin/nautilus"
if self.config.get("file_manager") == 2:
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))
self.update()
# except KeyError:
# pass
except KeyError:
pass
def tor_start(self, widget):
unique_ids = self.get_selected_torrent_rows()