diff --git a/pyproject.toml b/pyproject.toml index 0504b951..cca3f2cc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "replit" -version = "3.2.3" +version = "3.2.4" description = "A library for interacting with features of repl.it" authors = ["Repl.it ", "mat ", "kennethreitz ", "Scoder12 ", "AllAwesome497", ] license = "ISC" diff --git a/src/replit/web/app.py b/src/replit/web/app.py index 531411a1..db4fccaa 100644 --- a/src/replit/web/app.py +++ b/src/replit/web/app.py @@ -59,7 +59,7 @@ def run( ) -> None: """A simple wrapper around app.run() with replit compatible defaults.""" # don't clobber user - if change_encoder and flask.json_encoder is flask.json.JSONEncoder: + if change_encoder and app.json_encoder is flask.json.JSONEncoder: app.json_encoder = DBJSONEncoder app.run(host=host, port=port, **kwargs)