Skip to content

Commit

Permalink
Fix: issue reported by pylint
Browse files Browse the repository at this point in the history
ospd/server.py:67:20: W0134: 'return' shadowed by the 'finally' clause. (return-in-finally)
  • Loading branch information
jjnicola committed Oct 23, 2023
1 parent daba250 commit 24c774b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ospd/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def write(self, data: bytes) -> bool:
except (socket.error, BrokenPipeError) as e:
logger.error("Error sending data to the client. %s", e)
ret_success = False
finally:
return ret_success # pylint: disable=lost-exception

return ret_success

try:
b_sent = self.socket.send(data[b_start:b_end])
Expand Down

0 comments on commit 24c774b

Please sign in to comment.