Handle IndexError when counting flow numbers
Change-Id: Ib42f651be1c5efe1d0bc2916f9cec534d2d6e0bd
diff --git a/TestON/drivers/common/cli/onosclidriver.py b/TestON/drivers/common/cli/onosclidriver.py
index 41b6c24..8d6a65b 100755
--- a/TestON/drivers/common/cli/onosclidriver.py
+++ b/TestON/drivers/common/cli/onosclidriver.py
@@ -2813,6 +2813,10 @@
return None
return totalFlows
+ except IndexError:
+ main.log.exception( "{}: Object not as expected!".format( self.name ) )
+ main.log.debug( "rawFlows: {}".format( rawFlows ) )
+ return None
except ( TypeError, ValueError ):
main.log.exception( "{}: Object not as expected!".format( self.name ) )
return None