Skip to content

Commit 2f92710

Browse files
committed
Update console scripts
1 parent d582d17 commit 2f92710

File tree

1 file changed

+9
-4
lines changed
  • seleniumbase/console_scripts

1 file changed

+9
-4
lines changed

seleniumbase/console_scripts/run.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ def show_basic_usage():
5353
print(" inject-objects [SELENIUMBASE_PYTHON_FILE] [OPTIONS]")
5454
print(" objectify [SELENIUMBASE_PYTHON_FILE] [OPTIONS]")
5555
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)")
5959
print(" grid-hub [start|stop|restart] [OPTIONS]")
6060
print(" grid-node [start|stop|restart] --hub=[HUB_IP] [OPTIONS]")
6161
print(' * (EXAMPLE: "seleniumbase install chromedriver") *')
@@ -259,7 +259,12 @@ def show_grid_node_usage():
259259

260260
def get_version():
261261
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
263268

264269

265270
def show_version_info():

0 commit comments

Comments
 (0)