Ticket #2141: excepts.patch

File excepts.patch, 915 bytes (added by stromberg, 12 years ago)
  • deluge/core/torrentmanager.py

     
    595603        # Remove the torrent from deluge's session
    596604        try:
    597605            del self.torrents[torrent_id]
    598         except KeyError, ValueError:
     606        except (KeyError, ValueError):
    599607            return False
    600608
    601609        # Save the session state
  • deluge/ui/gtkui/torrentview.py

     
    516516                return []
    517517
    518518            return torrent_ids
    519         except ValueError, TypeError:
     519        except (ValueError, TypeError):
    520520            return []
    521521
    522522    def get_torrent_status(self, torrent_id):