From 75af60bd721131497ede03ebfb6c560a3cf13510 Mon Sep 17 00:00:00 2001 From: Jxck-S Date: Sun, 16 Aug 2020 12:46:24 -0400 Subject: [PATCH] Update variables instead of create with loop --- NotifyBot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/NotifyBot.py b/NotifyBot.py index 8f1eb0c..acb5737 100644 --- a/NotifyBot.py +++ b/NotifyBot.py @@ -92,8 +92,7 @@ while True: if plane_Dict == None: feeding = False elif plane_Dict != None: - for key, value in plane_Dict.items(): - exec(key + '=value') + locals().update(plane_Dict) print (Fore.CYAN) if config.get('DATA', 'SOURCE') == "ADSBX": print("Registration: ", reg)