Skip to content

Commit

Permalink
make black happy
Browse files Browse the repository at this point in the history
  • Loading branch information
qaxi committed Apr 23, 2024
1 parent fda349e commit 49ceffd
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions napalm_s350/s350.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,11 @@ def _send_command(self, command):
try:
if isinstance(command, list):
for cmd in command:
output = self.device.send_command(
cmd,
read_timeout=self.timeout
)
output = self.device.send_command(cmd, read_timeout=self.timeout)
if "% Invalid" not in output:
break
else:
output = self.device.send_command(
command,
read_timeout=self.timeout
)
output = self.device.send_command(command, read_timeout=self.timeout)
return output.strip()
except (socket.error, EOFError) as e:
raise ConnectionClosedException(str(e))
Expand Down

0 comments on commit 49ceffd

Please sign in to comment.