Wokia-Dev / EzFractal

Re-defined variable from outer scope PYL-W0621
Anti-pattern
Major
a year agoa year old
Redefining name 'e' from outer scope (line 104)
105                        print("Error: ", e)
106                        try:
107                            os.system("xdg-open " + os.path.join(os.getcwd(), "Resources/Images/Saved_fractals/"))
108                        except Exception as e:109                            print("Error: ", e)
110                checked_ez_button.create_button()
111
Redefining name 'e' from outer scope (line 134)
135                        print("Error: ", e)
136                        try:
137                            os.system("xdg-open " + "CONFIG.ini")
138                        except Exception as e:139                            print("Error: ", e)
140        if any(
141                complex_button.check_hover(mouse_x, mouse_y)
Redefining name 'e' from outer scope (line 73)
 75                        try:
 76                            subprocess.Popen(
 77                                ["xdg-open", os.path.join(os.getcwd(), "Resources/Images/Saved_fractals/")])
 78                        except Exception as e: 79                            print("Error:", e)
 80
 81                if checked_ez_button.name == "btnExport":
Redefining name 'e' from outer scope (line 104)
105                        print("Error: ", e)
106                        try:
107                            os.system("xdg-open " + os.path.join(os.getcwd(), "Resources/Images/Saved_fractals/"))
108                        except Exception as e:109                            print("Error: ", e)
110                checked_ez_button.create_button()
111
Redefining name 'e' from outer scope (line 134)
135                        print("Error: ", e)
136                        try:
137                            os.system("xdg-open " + "CONFIG.ini")
138                        except Exception as e:139                            print("Error: ", e)
140        if any(
141                complex_button.check_hover(mouse_x, mouse_y)