Gets rid of the following IPDB warning

WARNING pyroute2.ipdb.main [-] shutdown in progress

Change-Id: Ic5d9e3433fd7f25370bc622e77201b99808f11a6
Signed-off-by: Nayan Deshmukh <n.deshmukh@samsung.com>
This commit is contained in:
Nayan Deshmukh 2019-07-12 13:22:37 +09:00
parent 135b4ea393
commit 04c25b4a02
1 changed files with 2 additions and 2 deletions

View File

@ -127,8 +127,8 @@ class CNIHealthServer(object):
data = 'ok'
no_limit = -1
try:
with IPDB() as a:
a.release()
with IPDB():
pass
except Exception:
error_message = 'IPDB not in working order.'
LOG.error(error_message)