From 658f794a3a7675bba9d746d1a17ee0e0a95ee400 Mon Sep 17 00:00:00 2001 From: dol-sen Date: Sun, 18 Sep 2011 21:31:33 -0700 Subject: fix unknown variable --- layman/dbbase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layman/dbbase.py b/layman/dbbase.py index a31ced9..ccd5806 100644 --- a/layman/dbbase.py +++ b/layman/dbbase.py @@ -86,6 +86,7 @@ class DbBase(object): self.paths = paths self.ignore = ignore self.output = config['output'] + self.ignore_init_read_errors = ignore_init_read_errors self.overlays = {} @@ -116,7 +117,7 @@ class DbBase(object): document = open(path, 'r').read() except Exception, error: - if not ignore_init_read_errors: + if not self.ignore_init_read_errors: self.output.error('Failed to read the overlay list at ("' + path + '")') raise error -- cgit v1.2.3-1-g7c22