From 574958ef32951bc3714680bf7c1214c5c12d173b Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Fri, 27 Oct 2023 14:48:03 +0200 Subject: [PATCH] Fix falsy variable reusage --- renumics/spotlight/viewer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renumics/spotlight/viewer.py b/renumics/spotlight/viewer.py index 817f31b2..2e6aa59d 100644 --- a/renumics/spotlight/viewer.py +++ b/renumics/spotlight/viewer.py @@ -360,8 +360,8 @@ def show( viewer = None if port != "auto": # reuse viewer with the same port if specified - for index, viewer in enumerate(_VIEWERS): - if viewer.port == port: + for index, viewer_ in enumerate(_VIEWERS): + if viewer_.port == port: viewer = _VIEWERS[index] break if not viewer: