Skip to content

Commit 8eba817

Browse files
committed
Fix condition check to show a warning
1 parent 5ba0cf5 commit 8eba817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orange/canvas/scheme/signalmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def process_queued(self, max_nodes=None):
301301
Take one node node from the pending input queue and deliver
302302
all scheduled signals.
303303
"""
304-
if max_nodes is not None or max_nodes != 1:
304+
if not (max_nodes is None or max_nodes == 1):
305305
warnings.warn(
306306
"`max_nodes` is deprecated and unused (will always equal 1)",
307307
DeprecationWarning, stacklevel=2)

0 commit comments

Comments
 (0)