fixed config post issue

This commit is contained in:
kay.one 2010-09-23 22:37:48 -07:00
parent d7bae9135c
commit 1620721efe
5 changed files with 6 additions and 2 deletions

View file

@ -68,6 +68,9 @@ namespace NzbDrone.Core.Controllers
private void SetValue(string key, string value)
{
if (String.IsNullOrEmpty(key)) throw new ArgumentOutOfRangeException("key");
if (value== null) throw new ArgumentNullException("key");
_logger.DebugFormat("Writing Setting to file. Key:'{0}' Value:'{1}'", key, value);
_sonicRepo.Add(new Config { Key = key, Value = value });