Skip to content

Commit

Permalink
fix: printing error message when no keys exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Xlin123 committed May 3, 2024
1 parent 2d39e78 commit d4288e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/python/sshnpd/sshnpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ def ephemeral_cleanup(self, session_id):
os.remove(f"{self.ssh_path}/tmp/{session_id}_sshnp.pub")
os.remove(f"{self.ssh_path}/tmp/{session_id}_sshnp")
self.logger.info("ephemeral ssh keys cleaned up")
except Exception as e:
self.logger.error(e)
except Exception:
self.logger.info("no ephermaeral keys to clean up")

def handle_ssh_public_key(self, ssh_public_key):
# // Check to see if the ssh Publickey is already in the file if not append to the ~/.ssh/authorized_keys file
Expand Down

0 comments on commit d4288e0

Please sign in to comment.