From 59f471e395d79e52a97aa9c1a5728fa3d75d5be4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 18 Oct 2019 21:32:47 +0100 Subject: [PATCH 1/1] 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 --- make-secnet-sites | 1 + 1 file changed, 1 insertion(+) 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={} -- 2.30.2