Skip to content

Commit

Permalink
fix: ssh connctions problem
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMohammad20000 committed Oct 7, 2024
1 parent f1d4efe commit d4bcb49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,4 @@ cython_debug/
#.idea/
server_list.json
backups/
.vscode/
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ def create_zipFile(hostname, port, username, password, var_files, opt_files, is_

except Exception as e:
logging.info(e)
if hasattr(ssh, "close"):
ssh.close()
return
ssh.close()
return BACKUP_FILE_NAME


Expand Down

0 comments on commit d4bcb49

Please sign in to comment.