From a1563116f63bc5f39d1a50753c5a6b021988dd00 Mon Sep 17 00:00:00 2001 From: Darksider3 Date: Wed, 16 Oct 2019 20:54:34 +0200 Subject: [PATCH] Renamed SSH-Exception --- private/lib/System.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/private/lib/System.py b/private/lib/System.py index 8f9344b..92e081c 100644 --- a/private/lib/System.py +++ b/private/lib/System.py @@ -38,7 +38,6 @@ class System: :return: True, if worked, raises lib.UserExceptions.UserExistsAlready when not :rtype: bool """ - create_command = cc cc = create_command + tuple([username]) if self.dry: @@ -78,7 +77,7 @@ class System: except FileExistsError: pass # thats actually a good one for us :D 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: with open(ssh_dir + "authorized_keys", "w") as f: