forked from 0x2620/pandora
warn about missing keys on stderr
This commit is contained in:
parent
3beacdbcb4
commit
0995eab3de
1 changed files with 2 additions and 1 deletions
|
@ -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', [])
|
||||||
|
|
Loading…
Reference in a new issue