remove try block

This commit is contained in:
Zach Tibbitts 2007-02-27 01:05:05 +00:00
parent 745872efde
commit 4f216a6f2e

View File

@ -421,7 +421,6 @@ class Manager:
# ___ALL queuing code should be in this function, and ONLY here___ # ___ALL queuing code should be in this function, and ONLY here___
def apply_queue(self, efficient = True): def apply_queue(self, efficient = True):
# Handle autoseeding - downqueue as needed # Handle autoseeding - downqueue as needed
try:
if self.auto_seed_ratio != -1: if self.auto_seed_ratio != -1:
for unique_ID in self.unique_IDs: for unique_ID in self.unique_IDs:
if self.get_core_torrent_state(unique_ID, efficient)['is_seed']: if self.get_core_torrent_state(unique_ID, efficient)['is_seed']:
@ -441,8 +440,6 @@ class Manager:
elif not self.get_core_torrent_state(unique_ID, efficient)['is_paused'] and \ elif not self.get_core_torrent_state(unique_ID, efficient)['is_paused'] and \
(index >= self.state.max_active_torrents or self.is_user_paused(unique_ID)): (index >= self.state.max_active_torrents or self.is_user_paused(unique_ID)):
deluge_core.pause(unique_ID) deluge_core.pause(unique_ID)
except AttributeError:
pass
# Event handling # Event handling