Skip to content

Commit

Permalink
close serial connection when bad password raises error
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron-MJohn committed Apr 14, 2024
1 parent 7cf0340 commit 4fc07cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/jnpr/junos/transport/tty.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ def _ev_bad_passwd():
self.write("\n")
self._badpasswd += 1
if self._badpasswd == 2:
self._tty_close()
# raise RuntimeError("Bad username/password")
raise EzErrors.ConnectAuthError(self, "Bad username/password")
# return through and try again ... could have been
Expand Down

0 comments on commit 4fc07cb

Please sign in to comment.