Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: Gang Lv ganglv@microsoft.com
  • Loading branch information
ganglyu committed Jan 19, 2022
1 parent 5704bc9 commit 593d244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sonic-config-engine/tests/common_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def validate(self, argument):
cmd += ' -n ' + args.namespace
cmd += ' --print-data'
output = subprocess.check_output(cmd, shell=True).decode()
self.yang_parser.loadData(configdbJson=json.loads(output))
try:
self.yang_parser.loadData(configdbJson=json.loads(output))
self.yang_parser.validate_data_tree()
except sonic_yang.SonicYangException as e:
print("yang data generated from %s is not valid"%(args.minigraph))
Expand Down

0 comments on commit 593d244

Please sign in to comment.