Unverified Commit 21ef4d0b authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

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

parent d8cd393d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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):