Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

create-test-api-docs: Remove unhelpful exception handler.

Anders Kaseorga109d68af03f
diff --git a/tools/create-test-api-docs b/tools/create-test-api-docs
index 7031f958ad8..e9aa9184e8c 100755
--- a/tools/create-test-api-docs
+++ b/tools/create-test-api-docs
@@ -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']))