Wokia-Dev / EzFractal

Exception caught is very general PYL-W0703
Anti-pattern
Major
a year agoa year old
Catching too general exception Exception
101                elif checked_ez_button.name == "btnOpenFolder":
102                    try:
103                        os.startfile(os.path.join(os.getcwd(), "Resources/Images/Saved_fractals/"))
104                    except Exception as e:105                        print("Error: ", e)
106                        try:
107                            os.system("xdg-open " + os.path.join(os.getcwd(), "Resources/Images/Saved_fractals/"))
Catching too general exception Exception
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
Catching too general exception Exception
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)
Catching too general exception Exception
131                elif checked_complex_button.name == "btnSettings":
132                    try:
133                        os.startfile("CONFIG.ini")
134                    except Exception as e:135                        print("Error: ", e)
136                        try:
137                            os.system("xdg-open " + "CONFIG.ini")
Catching too general exception Exception
109                elif checked_complex_button.name == "btnGithub":
110                    try:
111                        webbrowser.open("https://github.com/Wokia-Dev/EzFractal")
112                    except Exception as e:113                        print("Error: ", e)
114                elif checked_complex_button.name == "btnPopular":
115                    load_popular_app()