From: Ian Jackson Date: Fri, 18 Oct 2019 20:32:47 +0000 (+0100) Subject: make-secnet-sites: Set .type in the `level' base class X-Git-Tag: v0.5.0~32 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=59f471e395d79e52a97aa9c1a5728fa3d75d5be4;hp=2324082ad280c9086fd93c4f43c092624fbc3474;p=secnet.git make-secnet-sites: Set .type in the `level' base class We have one instance of directly this, the root node. If it has an error, the lack of the .type would cause a stack trace while trying to print the error message. Signed-off-by: Ian Jackson --- diff --git a/make-secnet-sites b/make-secnet-sites index f322678..65baa11 100755 --- a/make-secnet-sites +++ b/make-secnet-sites @@ -257,6 +257,7 @@ class level: allow_properties={} require_properties={} def __init__(self,w): + self.type=w[0] self.name=w[1] self.properties={} self.children={}