aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTeddy Wing2018-11-13 22:27:14 +0100
committerTeddy Wing2018-11-13 22:27:14 +0100
commit03dae84c7aa569e84513a8c9bd167a00e11debaa (patch)
treee0bde13b99c036da2c806f8576b0edfa6e192d72 /scripts
parentd55de8c8cd746a7d5c537c3b2ca49994d3007b66 (diff)
downloaddome-key-web-03dae84c7aa569e84513a8c9bd167a00e11debaa.tar.bz2
internal_error.html: Fix logo image
Hadn't tested this when I made it. Was outputting a formatted byte string instead of the plain base64, which resulted in `b'BASE_64'` being inserted. Output the real base64 to get the image to decode properly.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate_500.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/generate_500.py b/scripts/generate_500.py
index a415a39..d566d01 100755
--- a/scripts/generate_500.py
+++ b/scripts/generate_500.py
@@ -18,7 +18,7 @@ with open(os.path.join(script_dir, '../assets/styles.css'), 'r') as f:
css = f.read()
with open(os.path.join(script_dir, '../assets/logo.svg'), 'r') as f:
- logo = b64encode(f.read().encode('utf-8'))
+ logo = b64encode(f.read().encode('utf-8')).decode('utf-8')
template = Template(template)
html = template.substitute(