Skip to content

Commit e1d2ac0

Browse files
committed
uprev and improve docker logging
1 parent 8cf9dd8 commit e1d2ac0

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
History
44
-------
55

6+
v0.36.0 (2017-06-13)
7+
....................
8+
* allow alternative wkhtmltopdf binary via ``WKHTMLTOPDF_PATH`` environment variable
9+
610
v0.35.0 (2017-06-06)
711
....................
812
* add docker auto tagging

docker-entrypoint.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env python3.6
22
"""
3-
pydf pdf generation
3+
pydf
4+
5+
pdf generation in docker.
46
57
To generate PDF POST (or GET with data if possible) you HTML data to /generate.pdf.
68
@@ -39,8 +41,8 @@ async def generate(request):
3941
config[k[4:].lower()] = v.lower()
4042
data = await request.read()
4143
if not data:
42-
logger.info('Request with no PDF data')
43-
raise web.HTTPBadRequest(text='400: no PDF data provided\n')
44+
logger.info('Request with no body data')
45+
raise web.HTTPBadRequest(text='400: no HTML data to convert to PDF in request body\n')
4446
try:
4547
pdf_content = await app['apydf'].generate_pdf(data.decode(), **config)
4648
except RuntimeError as e:

pydf/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from distutils.version import StrictVersion
22

3-
VERSION = StrictVersion('0.35.0')
3+
VERSION = StrictVersion('0.36.0')

0 commit comments

Comments
 (0)