Skip to content

Commit 5d9a67a

Browse files
author
mikicat
committed
Version 1.1
1 parent fc8925b commit 5d9a67a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

shell.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
__copyright__ = "Copyright 2015, The UsefulShell || A Worldev Project"
55
__credits__ = ["Miquel Comas (Mikicat)", "JeDa", "NeoMahler"]
66
__license__ = "GPLv3"
7-
__version__ = "v1.0"
7+
__version__ = "v1.1"
88
__maintainer__ = "Miquel Comas (Mikicat), Worldev"
99
__email__ = "usefulshellproject@gmail.com"
1010
__status__ = "Development"
@@ -125,7 +125,7 @@ def clear():
125125
except ConnectionRefusedError:
126126
print(bcolors.FAIL + 'Connection refused' + bcolors.ENDC)
127127
except IndexError:
128-
pass
128+
print(bcolors.WARNING + 'Syntax: <host> <port> <user> <passwd>' + bcolors.ENDC)
129129
else:
130130
pass
131131
except IndexError:
@@ -314,7 +314,10 @@ def clear():
314314
import this
315315

316316
elif "ping" in shell:
317-
ping(shell[1])
317+
try:
318+
ping(shell[1])
319+
except IndexError:
320+
print('What I\'m supposed to ping?')
318321

319322
elif "http" and "server" in shell:
320323
run()

0 commit comments

Comments
 (0)