Commits

Michał Górny committed 4e8a8d8

Fix running MakeConf ops without a cache.

Comments (0)

Files changed (1)

lib/flaggie/makeconf.py

 		self.newvars = []
 		self.masterfile = None
 
-		flagcache = caches['use']
-		use_expand_vars = frozenset(flagcache.use_expand_vars)
+		try:
+			flagcache = caches['use']
+			use_expand_vars = frozenset(flagcache.use_expand_vars)
+		except (KeyError, TypeError):
+			flagcache = None
+			use_expand_vars = frozenset()
 
 		for path in paths:
 			if os.path.exists(path):