Router version; Handle empty spotify config
This commit is contained in:
@ -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']
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
"redux": "*",
|
||||
"react": "*",
|
||||
"react-dom": "*",
|
||||
"react-router": "*",
|
||||
"react-router": "3.0.2",
|
||||
"redux": "*",
|
||||
"react-redux": "*",
|
||||
"redux-devtools": "*",
|
||||
|
||||
Reference in New Issue
Block a user