Added guard during method scan
This commit is contained in:
parent
77e1940a5c
commit
f96974d79e
@ -21,8 +21,12 @@ class Main:
|
|||||||
|
|
||||||
handlers = {}
|
handlers = {}
|
||||||
for c in classes:
|
for c in classes:
|
||||||
methods = inspect.getmembers(c, predicate=inspect.ismethod)
|
methods = None
|
||||||
handlers.update(methods)
|
try:
|
||||||
|
methods = inspect.getmembers(c, predicate=inspect.ismethod)
|
||||||
|
handlers.update(methods)
|
||||||
|
except Exception as e:
|
||||||
|
pass
|
||||||
|
|
||||||
builder.connect_signals(handlers)
|
builder.connect_signals(handlers)
|
||||||
window = settings.createWindow()
|
window = settings.createWindow()
|
||||||
|
Loading…
Reference in New Issue
Block a user