simpler approach

This commit is contained in:
Erin O'Connell
2018-06-24 20:27:19 -06:00
parent cc332313a6
commit 2561e80dc8
+1 -8
View File
@@ -2409,14 +2409,7 @@ def do_check(three=None, python=False, system=False, unused=False, args=None):
python = which('python')
else:
python = system_which('python')
try:
if '--ignore' in args[0]:
ignore = ' '.join(args)
else:
ignore = ''
except IndexError:
ignore = ''
ignore = ' '.join(args)
c = delegator.run(
'"{0}" {1} check --json --key=1ab8d58f-5122e025-83674263-bc1e79e0 {2}'.format(
python, escape_grouped_arguments(path), ignore