File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
seleniumbase/console_scripts Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -53,9 +53,9 @@ def show_basic_usage():
53
53
print (" inject-objects [SELENIUMBASE_PYTHON_FILE] [OPTIONS]" )
54
54
print (" objectify [SELENIUMBASE_PYTHON_FILE] [OPTIONS]" )
55
55
print (" revert-objects [SELENIUMBASE_PYTHON_FILE]" )
56
- print (" encrypt OR obfuscate" )
57
- print (" decrypt OR unobfuscate" )
58
- print (" download server" )
56
+ print (" encrypt (OR: obfuscate) " )
57
+ print (" decrypt (OR: unobfuscate) " )
58
+ print (" download server (The Selenium Server JAR file) " )
59
59
print (" grid-hub [start|stop|restart] [OPTIONS]" )
60
60
print (" grid-node [start|stop|restart] --hub=[HUB_IP] [OPTIONS]" )
61
61
print (' * (EXAMPLE: "seleniumbase install chromedriver") *' )
@@ -259,7 +259,12 @@ def show_grid_node_usage():
259
259
260
260
def get_version ():
261
261
import pkg_resources
262
- return pkg_resources .require ("seleniumbase" )[0 :1 ]
262
+ version_info = None
263
+ try :
264
+ version_info = pkg_resources .require ("seleniumbase" )[0 :1 ]
265
+ except Exception :
266
+ version_info = ["ERROR: Cannot detect version! Please reinstall!" ]
267
+ return version_info
263
268
264
269
265
270
def show_version_info ():
You can’t perform that action at this time.
0 commit comments