Skip to content

Commit

Permalink
handle gracefully when redis params are missing in test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
n0phx committed Mar 18, 2015
1 parent a22e308 commit ae96b79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions artexinweb/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@
}

huey = RedisHuey('job_queue',
host=BOTTLE_CONFIG['redis.host'],
port=BOTTLE_CONFIG['redis.port'],
password=BOTTLE_CONFIG['redis.password'])
host=BOTTLE_CONFIG.get('redis.host', '127.0.0.1'),
port=BOTTLE_CONFIG.get('redis.port', 6379),
password=BOTTLE_CONFIG.get('redis.password', ''))

0 comments on commit ae96b79

Please sign in to comment.