warn about missing keys on stderr

This commit is contained in:
j 2013-07-06 11:34:56 +00:00
parent 3beacdbcb4
commit 0995eab3de

View file

@ -80,7 +80,8 @@ def load_config():
d = d[part] d = d[part]
for key in d: for key in d:
if key not in c: if key not in c:
print "adding default value for %s.%s" % (section, key), '=', d[key] sys.stderr.write("adding default value for %s.%s = %s\n" % (
section, key, str(d[key])))
c[key] = d[key] c[key] = d[key]
old_formats = getattr(settings, 'CONFIG', {}).get('video', {}).get('formats', []) old_formats = getattr(settings, 'CONFIG', {}).get('video', {}).get('formats', [])