ensure whitelist always has a list

This commit is contained in:
Ryan Pessa 2015-01-27 14:30:42 -06:00
parent 328bd0fe84
commit 72e660ede5

View file

@ -494,7 +494,7 @@ class TargetAndroid(Target):
return package.lower()
def _generate_whitelist(self, dist_dir):
p4a_whitelist = self.buildozer.config.getlist('app', 'android.p4a_whitelist')
p4a_whitelist = self.buildozer.config.getlist('app', 'android.p4a_whitelist') or []
whitelist_fn = join(dist_dir, 'whitelist.txt')
with open(whitelist_fn, 'w') as fd:
for wl in p4a_whitelist: