Renamed SSH-Exception

pull/4/head
Darksider3 5 years ago
parent 0c1f7ea252
commit a1563116f6

@ -38,7 +38,6 @@ class System:
:return: True, if worked, raises lib.UserExceptions.UserExistsAlready when not :return: True, if worked, raises lib.UserExceptions.UserExistsAlready when not
:rtype: bool :rtype: bool
""" """
create_command = cc create_command = cc
cc = create_command + tuple([username]) cc = create_command + tuple([username])
if self.dry: if self.dry:
@ -78,7 +77,7 @@ class System:
except FileExistsError: except FileExistsError:
pass # thats actually a good one for us :D pass # thats actually a good one for us :D
except OSError as e: except OSError as e:
raise lib.UserExceptions.HomeDirExistsAlready(f"Could not create {ssh_dir}: Exception: {e}") raise lib.UserExceptions.SSHDirUncreatable(f"Could not create {ssh_dir}: Exception: {e}")
try: try:
with open(ssh_dir + "authorized_keys", "w") as f: with open(ssh_dir + "authorized_keys", "w") as f:

Loading…
Cancel
Save