From f96974d79e20dfc476c62ac76cfdcc683ed07e9d Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Thu, 18 Mar 2021 00:24:08 -0500 Subject: [PATCH] Added guard during method scan --- src/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/__init__.py b/src/__init__.py index e6093ed..df89b7b 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -21,8 +21,12 @@ class Main: handlers = {} for c in classes: - methods = inspect.getmembers(c, predicate=inspect.ismethod) - handlers.update(methods) + methods = None + try: + methods = inspect.getmembers(c, predicate=inspect.ismethod) + handlers.update(methods) + except Exception as e: + pass builder.connect_signals(handlers) window = settings.createWindow()