summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
aedbeca)
In
e5baf0cd0e91353194df02c4c376b0c472f49ec2
make-secnet-sites: Crash if complain() is called too late
we checked for this.
But actually we want to support it. Do so by exiting right away.
So, early enough complaints are saved up. Late ones cause immediate
exit.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
"Complain about something in general"
global complaints
print(msg);
"Complain about something in general"
global complaints
print(msg);
+ if complaints is None: sys.exit(1)
complaints=complaints+1
class UntaintedRoot():
complaints=complaints+1
class UntaintedRoot():