mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-28 21:06:34 -04:00
Added return codes
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ def get_profile(_profile_dir):
|
||||
except (FileNotFoundError, IndexError):
|
||||
print('\nEither the profile does not exist, or it is corrupted.\n')
|
||||
_profile_data = None
|
||||
s_exit()
|
||||
s_exit(1)
|
||||
# extract data from profile
|
||||
_user = _profile_data[0].replace('\n', '')
|
||||
_ip = _profile_data[1].replace('\n', '')
|
||||
|
||||
Reference in New Issue
Block a user