mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 01:53:59 +00:00
create-test-api-docs: Remove unhelpful exception handler.
encode returns bytes, which cannot possibly be written to a text file. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
234f7245cf
commit
a109d68af0
@@ -72,10 +72,7 @@ def create_single_page(pattern: str, out_dir: str, href: str, calls: List[Call])
|
||||
f.write('<hr>')
|
||||
f.write('\n{}'.format(fix_test_name(call['test_name'])))
|
||||
f.write('<div class="test">')
|
||||
try:
|
||||
f.write(call['url'])
|
||||
except Exception:
|
||||
f.write(call['url'].encode('utf8'))
|
||||
f.write(call['url'])
|
||||
f.write('<br>\n')
|
||||
f.write(call['method'] + '<br>\n')
|
||||
f.write('status code: {}<br>\n'.format(call['status_code']))
|
||||
|
||||
Reference in New Issue
Block a user