Minor reformatting

This commit is contained in:
Edgar P. Burkhart 2021-12-29 14:50:58 +01:00
parent 9f0353d961
commit 7a501789b6
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -34,7 +34,8 @@ for item in codes:
code, title, desc = item.groups() code, title, desc = item.groups()
if int(code) < 300 or int(code) >= 600: continue if int(code) < 300 or int(code) >= 600: continue
with error.joinpath(f'{code}.html').open('w') as html: with error.joinpath(f'{code}.html').open('w') as html:
html.write(root_html.format(code=code, title=title, desc=desc, style=root_css)) html.write(root_html.format(
code=code, title=title, desc=desc, style=root_css))
nginx_head += f'error_page {code} @error{code};\n' nginx_head += f'error_page {code} @error{code};\n'
nginx_body += f'location @error{code} {{\n'\ nginx_body += f'location @error{code} {{\n'\
f'root {error.resolve()};\n'\ f'root {error.resolve()};\n'\