Ticket #2141: excepts.patch
File excepts.patch, 915 bytes (added by , 12 years ago) |
---|
-
deluge/core/torrentmanager.py
595 603 # Remove the torrent from deluge's session 596 604 try: 597 605 del self.torrents[torrent_id] 598 except KeyError, ValueError:606 except (KeyError, ValueError): 599 607 return False 600 608 601 609 # Save the session state -
deluge/ui/gtkui/torrentview.py
516 516 return [] 517 517 518 518 return torrent_ids 519 except ValueError, TypeError:519 except (ValueError, TypeError): 520 520 return [] 521 521 522 522 def get_torrent_status(self, torrent_id):