reproducible debian: web scheduler: clean exit in case of ValidationError

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent d8cd393d
......@@ -6,6 +6,7 @@
import os
import re
import cgi
import sys
import cgitb
import subprocess
cgitb.enable()
......@@ -18,6 +19,7 @@ class ValidationError(Exception):
print('Content-Type: text/html; charset="utf-8"')
print()
print(message)
sys.exit()
def sanify_field(field_name, field_text):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment