Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Oct 15, 2024
2 parents aa3c147 + ebcfbd9 commit bbd4865
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion emmett/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.6.0"
__version__ = "2.6.1"
2 changes: 1 addition & 1 deletion emmett/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ async def _process(self, **kwargs):
self.params[field.name] = self.record[field.name]
continue
else:
source_file, original_filename = upload.stream, upload.filename
source_file, original_filename = upload, upload.filename
newfilename = field.store(source_file, original_filename, field.uploadfolder)
if isinstance(field.uploadfield, str):
self.params[field.uploadfield] = source_file.read()
Expand Down
4 changes: 1 addition & 3 deletions emmett/routing/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ def process(self, output: Any, response) -> str:
return self.route.app.templater.render(self.route.template, output)
except TemplateMissingError as exc:
raise HTTPStringResponse(404, body="{}\n".format(exc.message), cookies=response.cookies)
elif isinstance(output, str):
return output
elif isinstance(output, HTTPResponse):
if isinstance(output, str):
return output
return str(output)
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "emmett"
version = "2.6.0"
version = "2.6.1"
description = "The web framework for inventors"
readme = "README.md"
license = "BSD-3-Clause"
Expand Down Expand Up @@ -35,7 +35,7 @@ classifiers = [

dependencies = [
"click>=6.0",
"emmett-core[granian,rapidjson]~=1.0.1",
"emmett-core[granian,rapidjson]~=1.0.2",
"emmett-pydal==17.3.1",
"pendulum~=3.0.0",
"pyyaml~=6.0",
Expand Down

0 comments on commit bbd4865

Please sign in to comment.