Try/except harder

Moved the try in the main try/except block so we will always get the original intended command to run.
pull/256/head
Michael Weinstein 2017-09-21 10:22:24 -07:00
parent 99e6b63f42
commit 06d36975d1
1 changed files with 4 additions and 4 deletions

View File

@ -402,11 +402,11 @@ def shinyLetsBeBadGuys():
if __name__ == '__main__':
import os
args = parseArguments()
intendedCommand = args[:]
intendedCommand[0] = originalSSHExecutable
intendedCommand = " ".join(intendedCommand)
try:
args = parseArguments()
intendedCommand = args[:]
intendedCommand[0] = originalSSHExecutable
intendedCommand = " ".join(intendedCommand)
if len(args) > 1:
shinyLetsBeBadGuys()
except: #I really feel weird doing a massive open-ended exception here... but silence