Skip to content

Commit

Permalink
Fix critical bug in assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Goh committed Oct 30, 2017
1 parent fae5e53 commit 522dec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion json_obj/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, schema, strict=False):
>>> JSONObject([{'my_key': str}])
>>> JSONObject({'my_key': str})
"""
if not isinstance(schema, dict) or isinstance(schema, list):
if not (isinstance(schema, dict) or isinstance(schema, list)):
raise SchemaError("The Schema provided is invalid")
self.schema = schema
self.strict = strict
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="json_obj",
version="1.0.0",
version="1.0.1",
description="Safe JSON decoding to objects in Python",
author="Emmanuel Goh",
author_email="[email protected]",
Expand Down

0 comments on commit 522dec6

Please sign in to comment.