Router version; Handle empty spotify config

This commit is contained in:
James Barnsley
2017-03-31 08:33:27 +13:00
parent 97b354c5d1
commit e724ecdcc7
2 changed files with 7 additions and 2 deletions

View File

@ -182,8 +182,13 @@ class IrisCore(object):
##
def get_config(self, data):
if 'spotify' in self.config and 'username' in self.config['spotify']:
spotify_username = self.config['spotify']['username']
else:
spotify_username = False
config = {
"spotify_username": self.config['spotify']['username'],
"spotify_username": spotify_username,
"country": self.config['iris']['country'],
"locale": self.config['iris']['locale']
}

View File

@ -33,7 +33,7 @@
"redux": "*",
"react": "*",
"react-dom": "*",
"react-router": "*",
"react-router": "3.0.2",
"redux": "*",
"react-redux": "*",
"redux-devtools": "*",