aboutsummaryrefslogtreecommitdiff
path: root/uploader/input_validation.py
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/input_validation.py')
-rw-r--r--uploader/input_validation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/uploader/input_validation.py b/uploader/input_validation.py
index 3b5d4dd..627c69e 100644
--- a/uploader/input_validation.py
+++ b/uploader/input_validation.py
@@ -55,7 +55,7 @@ def is_valid_representative_name(repr_name: str) -> bool:
return bool(pattern.match(repr_name))
-def encode_errors(errors: tuple[tuple[str, str], ...], form) -> str:
+def encode_errors(errors: tuple[tuple[str, str], ...], form) -> bytes:
"""Encode form errors into base64 string."""
return base64.b64encode(
json.dumps({