Skip to content

Commit

Permalink
Workaround for ConfigObj parsing strings as lists if they contain a c…
Browse files Browse the repository at this point in the history
…omma
  • Loading branch information
jaingaurav committed Jan 3, 2015
1 parent 14f4bab commit 26a4da6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/diamond/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def run(self):
sys.exit(1)

handlers = self.config['server'].get('handlers')
handlers = handlers.split(',')
handlers = map(str.strip, handlers)
if isinstance(handlers, basestring):
handlers = [handlers]

# Prevent the Queue Handler from being a normal handler
if 'diamond.handler.queue.QueueHandler' in handlers:
Expand Down

0 comments on commit 26a4da6

Please sign in to comment.