X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fplc%2Fnetwork.py;h=2a3e6ba2b08e463cfa38bb030925b5559226c752;hb=d4ac0d659bcc81e9aeef5ad0a96c81251fd50bf6;hp=9650e4c97c08d43af6fe55e1b8ebb08c7dc83694;hpb=6bdaf0128d38eedc18740b36a3a65e649e5d14d3;p=sfa.git diff --git a/sfa/plc/network.py b/sfa/plc/network.py index 9650e4c9..2a3e6ba2 100644 --- a/sfa/plc/network.py +++ b/sfa/plc/network.py @@ -148,8 +148,8 @@ class Slice: Use with tags that have only one instance """ def get_tag(self, tagname, node = None): - try: - for i in self.slice_tag_ids: + for i in self.slice_tag_ids: + try: tag = self.network.lookupSliceTag(i) if tag.tagname == tagname: if node: @@ -157,10 +157,10 @@ class Slice: return tag elif not tag.node_id: return tag - except InvalidRSpec, e: - # As they're not needed, we ignore some tag types from - # GetSliceTags call. See Slicetag.ignore_tags - pass + except InvalidRSpec, e: + # As they're not needed, we ignore some tag types from + # GetSliceTags call. See Slicetag.ignore_tags + pass return None def get_nodes(self):