On 06/04/2012 04:22 PM, Jesse Keating wrote:
+ if line.startswith(self.busid)][:0]
Make this [:1]. [:1] will return the first element in the list, but not traceback if there are no elements in the list (it'll just return an empty list).
-- Jesse Keating Fedora -- Freedom² is a feature! _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list