# HG changeset patch # User Tom Hayward # Date 1310754106 21600 # Node ID 873eab80a9deec27531b7f4d870fcc2db6f769e3 # Parent 57fd028dd570dad1a76f2b6973fd68729cacfd48 Fix clone to not attempt to read empty ports list. diff -r 57fd028dd570 -r 873eab80a9de chirpui/clone.py --- a/chirpui/clone.py Sun Jul 10 15:24:36 2011 -0700 +++ b/chirpui/clone.py Fri Jul 15 12:21:46 2011 -0600 @@ -57,7 +57,7 @@ if not port: if conf.get("last_port"): port = conf.get("last_port") - else: + elif ports: port = ports[0] return miscwidgets.make_choice(ports, True, port)