Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cdavis committed Feb 8, 2010
1 parent 1ff3986 commit 9f79c98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions carbon/lib/carbon/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
defaults = dict(
LOCAL_DATA_DIR="/opt/graphite/storage/whisper/",
USER="",
CREATION_DELAY=1.0,
MAX_CACHE_SIZE='inf',
MAX_UPDATES_PER_SECOND=1000,
MAX_CREATES_PER_MINUTE='inf',
Expand Down Expand Up @@ -64,7 +63,8 @@ def readFrom(self, path, section):
self.update(defaults)

parser = ConfigParser()
assert parser.read(path), "Failed to read config file %s" % path
if not parser.read(path):
raise Exception("Failed to read config file %s" % path)

for key,value in parser.items(section):
try:
Expand Down

0 comments on commit 9f79c98

Please sign in to comment.