File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 4
4
__copyright__ = "Copyright 2015, The UsefulShell || A Worldev Project"
5
5
__credits__ = ["Miquel Comas (Mikicat)" , "JeDa" , "NeoMahler" ]
6
6
__license__ = "GPLv3"
7
- __version__ = "v1.0 "
7
+ __version__ = "v1.1 "
8
8
__maintainer__ = "Miquel Comas (Mikicat), Worldev"
9
9
__email__ = "usefulshellproject@gmail.com"
10
10
__status__ = "Development"
@@ -125,7 +125,7 @@ def clear():
125
125
except ConnectionRefusedError :
126
126
print (bcolors .FAIL + 'Connection refused' + bcolors .ENDC )
127
127
except IndexError :
128
- pass
128
+ print ( bcolors . WARNING + 'Syntax: <host> <port> <user> <passwd>' + bcolors . ENDC )
129
129
else :
130
130
pass
131
131
except IndexError :
@@ -314,7 +314,10 @@ def clear():
314
314
import this
315
315
316
316
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?' )
318
321
319
322
elif "http" and "server" in shell :
320
323
run ()
You can’t perform that action at this time.
0 commit comments