[Rest2web-develop] handling missing configuration values
Brought to you by:
mjfoord
From: Karl G. <ka...@kg...> - 2011-08-10 07:23:13
|
hi, I've noticed if the config file exists but is empty rest2web fails with a small backtrace. Traceback (most recent call last): File "../srccache/rest2web-packaging/r2w.py", line 142, in <module> log_file = config['log_file'] or None File "/home/kgoetz/srccache/rest2web-packaging/rest2web/pythonutils/configobj.py", line 532, in __getitem__ val = dict.__getitem__(self, key) KeyError: 'log_file' Has this been fixed in svn? (or whatever the code will be in after this). If not I'll have a proper go at fixing it myself - the quick hack i put in requires DEBUG and psyco to be in the config. kk PS. i subscribed to the list, so no need to cc me :) -- Karl Goetz, (Kamping_Kaiser / VK5FOSS) Debian contributor / gNewSense Maintainer http://www.kgoetz.id.au No, I won't join your social networking group |