Commits

Michał Górny committed d655346

(Temporarily) return None for non-existent variables in make.conf.

  • Participants
  • Parent commits 0d45aad

Comments (0)

Files changed (1)

File lib/flaggie/makeconf.py

 			'kw': 'ACCEPT_KEYWORDS',
 			'lic': 'ACCEPT_LICENSE'
 		}
-		return self.variables[kmap[k]]
+
+		try:
+			return self.variables[kmap[k]]
+		except KeyError:
+			return None
 
 	def write(self):
 		for f in self.files.values():