diff options
author | Teddy Wing | 2018-11-13 22:27:14 +0100 |
---|---|---|
committer | Teddy Wing | 2018-11-13 22:27:14 +0100 |
commit | 03dae84c7aa569e84513a8c9bd167a00e11debaa (patch) | |
tree | e0bde13b99c036da2c806f8576b0edfa6e192d72 /scripts/generate_500.py | |
parent | d55de8c8cd746a7d5c537c3b2ca49994d3007b66 (diff) | |
download | dome-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/generate_500.py')
-rwxr-xr-x | scripts/generate_500.py | 2 |
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( |