Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
erjiaqing committed Sep 30, 2022
1 parent 12331a2 commit d5e75a0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/controller/python/test/test_scripts/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,11 +931,7 @@ async def OnResubscriptionSucceeded(transaction):
def TestCloseSession(self, nodeid: int):
self.logger.info(f"Closing sessions with device {nodeid}")
try:
err = self.devCtrl.CloseSession(nodeid)
if err != 0:
self.logger.exception(
f"Failed to close sessions with device {nodeid}: {err}")
return False
self.devCtrl.CloseSession(nodeid)
return True
except Exception as ex:
self.logger.exception(
Expand Down

0 comments on commit d5e75a0

Please sign in to comment.