else:
if len(values) == 1:
return values[0]
- except ValueError, IndexError:
+ except (ValueError, IndexError):
print >>sys.stderr, "Invalid input, please try again"
pass
while True:
options = {}
will_download = True
- for n in node.children:
+ for n in node.get_children():
options[n.title] = n
if not n.can_download:
will_download = False