summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/lib/ovs/vsctl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ryu/lib/ovs/vsctl.py b/ryu/lib/ovs/vsctl.py
index f1454985..66c2d628 100644
--- a/ryu/lib/ovs/vsctl.py
+++ b/ryu/lib/ovs/vsctl.py
@@ -126,8 +126,8 @@ def datum_from_string(type_, value_string, symtab=None):
def ifind(pred, seq):
try:
- return next(filter(pred, seq))
- except StopIteration:
+ return [i for i in seq if pred(i)][0]
+ except IndexError:
return None