diff --git a/src/core.py b/src/core.py index 784e44ae2..279a08a86 100644 --- a/src/core.py +++ b/src/core.py @@ -850,7 +850,9 @@ class Manager: if self.get_pref("random_port") == False: PREF_FUNCTIONS[pref](self.get_pref(pref)) else: - if deluge_core.listening_port() != 0 and deluge_core.listening_port() != self.get_pref("listen_on")[0] and deluge_core.listening_port() != self.get_pref("listen_on")[1]: + if deluge_core.listening_port() != 0 and \ + deluge_core.listening_port() != self.get_pref("listen_on")[0] \ + and deluge_core.listening_port() != self.get_pref("listen_on")[1]: pass else: import random