From e972894b8a2abc1c38d556223f3e7ac53cbaba0b Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 14 Oct 2021 23:43:40 +0200 Subject: [PATCH] supybot-wizard: Fix variable shadowing. --- scripts/supybot-wizard | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/supybot-wizard b/scripts/supybot-wizard index 1263ab4b9..7082a488e 100644 --- a/scripts/supybot-wizard +++ b/scripts/supybot-wizard @@ -538,7 +538,7 @@ def main(): while True: channels_input = something('What channels?', default=defaultChannels) channels = [] - error = False + error_ = False for channel in channels_input.split(): L = channel.split(',') if len(L) == 0: @@ -552,9 +552,9 @@ def main(): network.channels.key.get(channel).setValue(key) else: output("""Too many commas in %s.""" % channel) - error = True + error_ = True break - if error: + if error_: break try: network.channels.set(' '.join(channels))