Removed extraneous whitespace
This commit is contained in:
parent
122bbfb157
commit
75df9777b3
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ from functions.common import *
|
||||||
|
|
||||||
def get_json_from_command(cmd, ignore_errors=True):
|
def get_json_from_command(cmd, ignore_errors=True):
|
||||||
"""Capture JSON content from cmd output, returns dict.
|
"""Capture JSON content from cmd output, returns dict.
|
||||||
|
|
||||||
If the data can't be decoded then either an exception is raised
|
If the data can't be decoded then either an exception is raised
|
||||||
or an empty dict is returned depending on ignore_errors.
|
or an empty dict is returned depending on ignore_errors.
|
||||||
"""
|
"""
|
||||||
|
|
@ -22,7 +22,7 @@ def get_json_from_command(cmd, ignore_errors=True):
|
||||||
except (subprocess.CalledProcessError, json.decoder.JSONDecodeError):
|
except (subprocess.CalledProcessError, json.decoder.JSONDecodeError):
|
||||||
if not ignore_errors:
|
if not ignore_errors:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
return json_data
|
return json_data
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue