diff options
Diffstat (limited to 'src/sugar/tutorius/gtkutils.py')
-rw-r--r-- | src/sugar/tutorius/gtkutils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sugar/tutorius/gtkutils.py b/src/sugar/tutorius/gtkutils.py index 6841299..efa6eef 100644 --- a/src/sugar/tutorius/gtkutils.py +++ b/src/sugar/tutorius/gtkutils.py @@ -40,7 +40,10 @@ def find_widget(base, target_fqdn): path.pop(0) while len(path) > 0: - obj = obj.get_children()[int(path.pop(0))] + try: + obj = obj.get_children()[int(path.pop(0))] + except: + break return obj |