Skip to content

Commit

Permalink
Temporary fix to remote11 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ViddeM committed Oct 9, 2020
1 parent d9b239c commit ea30074
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/print_via_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ def print_via_ssh(filename: str, printer_name: str, username: str, password: str
print("Connecting to server")

try:
ssh.connect(SERVER, username=username, password=password)
ssh.connect(FALLBACK_SERVER, username=username, password=password)
except (AuthenticationException, SSHException):
try:
ssh.connect(FALLBACK_SERVER, username=username, password=password)
ssh.connect(SERVER, username=username, password=password)
except AuthenticationException:
return get_result_with_error("Invalid username/password")
except Exception:
Expand Down

0 comments on commit ea30074

Please sign in to comment.