fix issues raising pylint warnings

+ small bug fixes

Change-Id: Ib63bf13ad06446d3ec3b8cd0b16f9426cef9e3f4
This commit is contained in:
2021-07-06 16:23:06 +02:00
parent 039ece9549
commit d9cc85c1df
6 changed files with 10 additions and 12 deletions

View File

@ -517,7 +517,7 @@ class SecopClient(ProxyClient):
raise ConnectionError('connection closed before reply')
action, _, data = entry[2] # pylint: disable=unpacking-non-sequence
if action.startswith(ERRORPREFIX):
errcls = self.error_map(data[0] + "Error")
errcls = self.error_map(data[0])
raise errcls(data[1])
return entry[2] # reply