From 085a4e61305d0e2df46ab00445ad64ea143382a7 Mon Sep 17 00:00:00 2001 From: Yu-An Chen Date: Wed, 3 Nov 2021 11:01:59 -0400 Subject: [PATCH] Fix example in readme (#180) Validation results are currently in `YamaleError.results` instead of `YamaleError.value.results` - https://github.com/23andMe/Yamale/blob/master/yamale/yamale_error.py#L5 . --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2203155..87fe82c 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ try: print('Validation success! 👍') except YamaleError as e: print('Validation failed!\n') - for result in e.value.results: + for result in e.results: print("Error validating data '%s' with '%s'\n\t" % (result.data, result.schema)) for error in result.errors: print('\t%s' % error)