We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8de7d2d commit e596f42Copy full SHA for e596f42
src/robotremoteserver.py
@@ -315,7 +315,7 @@ def parse_args(args):
315
actions = {'stop': stop, 'test': test}
316
if not args or len(args) > 2 or args[0] not in actions:
317
sys.exit('Usage: python -m robotremoteserver test|stop [uri]')
318
- uri = args[1] if len(args) == 2 else 'http://127.0.0.1:8270'
+ uri = len(args) == 2 and args[1] or 'http://127.0.0.1:8270'
319
if '://' not in uri:
320
uri = 'http://' + uri
321
return actions[args[0]], uri
0 commit comments