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 Jul 20, 2023
1 parent e71ce7c commit 123086a
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 123086a

Please sign in to comment.