Moved the split after detection of None.

Present user with configs if server detection fails.
This commit is contained in:
angelblue05 2015-04-03 07:36:41 -05:00
parent 264758cca8
commit 1c02ac453c

View file

@ -69,12 +69,13 @@ class ConnectionManager():
return return
serverInfo = self.getServerDetails() serverInfo = self.getServerDetails()
prefix,ip,port = serverInfo.split(":")
if (serverInfo == None): if (serverInfo == None):
self.logMsg("getServerDetails failed", 1) self.logMsg("getServerDetails failed", 1)
xbmc.executebuiltin('Addon.OpenSettings(%s)' % self.addonId)
return return
prefix,ip,port = serverInfo.split(":")
setServer = xbmcgui.Dialog().yesno(self.__language__(30167), "Proceed with the following server?", self.__language__(30169) + serverInfo) setServer = xbmcgui.Dialog().yesno(self.__language__(30167), "Proceed with the following server?", self.__language__(30169) + serverInfo)
if setServer == 1: if setServer == 1: