Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck committed Sep 20, 2023
1 parent a4f5ec5 commit 3de2493
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
try:
validation_errors = JsonValidator(SchemaVersion.V1_4).validate_str(serialized_json)
if validation_errors:
print('', 'JSON ValidationError:', repr(validation_errors), sep='\n', file=sys.stderr)
print('JSON valid', 'ValidationError:', repr(validation_errors), sep='\n', file=sys.stderr)
sys.exit(2)
print('JSON valid')
except MissingOptionalDependencyException as error:
Expand All @@ -68,8 +68,8 @@
try:
validation_errors = XmlValidator(SchemaVersion.V1_4).validate_str(serialized_xml)
if validation_errors:
print('', 'JSON ValidationError:', repr(validation_errors), sep='\n', file=sys.stderr)
print('XML invalid', 'ValidationError:', repr(validation_errors), sep='\n', file=sys.stderr)
sys.exit(2)
print('JSON valid')
print('XML valid')
except MissingOptionalDependencyException as error:
print('XML-validation was skipped due to', error)

0 comments on commit 3de2493

Please sign in to comment.