mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 05:47:50 +00:00
remove try block
This commit is contained in:
parent
745872efde
commit
4f216a6f2e
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user