aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-05-09 16:12:35 -0400
committerOle Trøan <otroan@employees.org>2019-05-10 20:34:46 +0000
commitbff9f2f2e7a288886cd843bc90446ef1d26615dd (patch)
tree536998ec908781385a8b3476cc31ed141c3940da /test
parent63b19bf414530a95bce4d4148a375fff60d411d8 (diff)
tests: test/vpp_papi_provider.py Specify exception to catch.
Change-Id: If936b198bcac7a317d52f958561c3e19d158450a Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test')
-rw-r--r--test/vpp_papi_provider.py2
1 files changed, 1 insertions, 1 deletions
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,