From: Tony Mack Date: Thu, 7 Nov 2013 22:39:46 +0000 (-0500) Subject: fix for potential ValueError X-Git-Tag: sfa-3.1-1~45^2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=02f42286da5bd6dbe62a31ea9b733ee3225903aa;p=sfa.git fix for potential ValueError --- diff --git a/sfa/planetlab/plslices.py b/sfa/planetlab/plslices.py index 65e2164a..c277a698 100644 --- a/sfa/planetlab/plslices.py +++ b/sfa/planetlab/plslices.py @@ -320,6 +320,7 @@ class PlSlices: for link in requested_links: # get the ip address of the first node in the link ifname1 = Xrn(link['interface1']['component_id']).get_leaf() + if ifname1: ifname_parts = ifname1.split(':') node_raw = ifname_parts[0]