Skip to content

Commit 090dba0

Browse files
committed
Fix zero length field names in format
1 parent ac1238e commit 090dba0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎docverter.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ def _process_file(source_text, to_format, from_format, extra_args):
9797
if resp.status_code == 500:
9898
req = prepared
9999
print('**** Got a 500 error from server *****')
100-
print('{}\n{}\n{}\n\n{}'.format(
100+
print('{0}\n{1}\n{2}\n\n{}'.format(
101101
'-----------START-----------',
102102
req.method + ' ' + req.url,
103-
'\n'.join('{}: {}'.format(k, v)
103+
'\n'.join('{0}: {1}'.format(k, v)
104104
for k, v in req.headers.items()),
105105
req.body,
106106
))

0 commit comments

Comments
 (0)