Skip to content

Commit

Permalink
Fix error when using web.run (#109)
Browse files Browse the repository at this point in the history
* Fix error when using web.run

* Bump version from 3.2.3 to 3.2.4
  • Loading branch information
Scoder12 committed Jul 28, 2021
1 parent 17a3308 commit 890c80d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <contact@repl.it>", "mat <pypi@matdoes.dev>", "kennethreitz <me@kennethreitz.org>", "Scoder12 <pypi@scoder12.ml>", "AllAwesome497", ]
license = "ISC"
Expand Down
2 changes: 1 addition & 1 deletion src/replit/web/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 890c80d

Please sign in to comment.