Skip to content

Commit

Permalink
All tests passing, removed check for psycopg2+Json in field initializer.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Aug 15, 2023
1 parent 6d94a1c commit 161c1ac
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions playhouse/postgres_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,6 @@ class JSONField(Field):
_json_datatype = 'json'

def __init__(self, dumps=None, *args, **kwargs):
if Json is None:
raise Exception('Your version of psycopg2 does not support JSON.')
self.dumps = dumps or json.dumps
super(JSONField, self).__init__(*args, **kwargs)

Expand Down

0 comments on commit 161c1ac

Please sign in to comment.