diff options
author | Vincent Vinet <vince.vinet@gmail.com> | 2009-03-18 18:34:17 (GMT) |
---|---|---|
committer | Vincent Vinet <vince.vinet@gmail.com> | 2009-03-18 18:34:17 (GMT) |
commit | cd4b5c8d01e68f170c783b638ad24992dbba8aea (patch) | |
tree | 17a1e5e63b4e11b3a28dfc9d34f0cc19abd905ce /src/sugar/tutorius/gtkutils.py | |
parent | 93e1647681cd69e0b0b702dc0c8779ebc6f2756c (diff) | |
parent | a82d9228b66c914782b7cba6c971395be82313e8 (diff) |
Merge branch 'master' of ssh://bobthebuilder.mine.nu:8080/home/git
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 |