Moved the split after detection of None.
Present user with configs if server detection fails.
This commit is contained in:
parent
264758cca8
commit
1c02ac453c
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue