From cd4b5c8d01e68f170c783b638ad24992dbba8aea Mon Sep 17 00:00:00 2001 From: Vincent Vinet Date: Wed, 18 Mar 2009 18:34:17 +0000 Subject: Merge branch 'master' of ssh://bobthebuilder.mine.nu:8080/home/git --- (limited to 'src/sugar/tutorius/gtkutils.py') 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 -- cgit v0.9.1