From bff9f2f2e7a288886cd843bc90446ef1d26615dd Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Thu, 9 May 2019 16:12:35 -0400 Subject: tests: test/vpp_papi_provider.py Specify exception to catch. Change-Id: If936b198bcac7a317d52f958561c3e19d158450a Signed-off-by: Paul Vinciguerra --- test/vpp_papi_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py index a3d20bf3088..ded73189e00 100644 --- a/test/vpp_papi_provider.py +++ b/test/vpp_papi_provider.py @@ -201,7 +201,7 @@ class VppPapiProvider(object): try: if os.environ['SOCKET'] == '1': use_socket = True - except: + except KeyError: pass self.vpp = VPP(logger=test_class.logger, read_timeout=read_timeout, -- cgit 1.2.3-korg