From 1c02ac453cdc70dc1f9dfe88ad4568df0bed600a Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 3 Apr 2015 07:36:41 -0500 Subject: [PATCH] Moved the split after detection of None. Present user with configs if server detection fails. --- resources/lib/ConnectionManager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lib/ConnectionManager.py b/resources/lib/ConnectionManager.py index 00826f15..2dd1a234 100644 --- a/resources/lib/ConnectionManager.py +++ b/resources/lib/ConnectionManager.py @@ -69,12 +69,13 @@ class ConnectionManager(): return serverInfo = self.getServerDetails() - prefix,ip,port = serverInfo.split(":") if (serverInfo == None): self.logMsg("getServerDetails failed", 1) + xbmc.executebuiltin('Addon.OpenSettings(%s)' % self.addonId) return - + + prefix,ip,port = serverInfo.split(":") setServer = xbmcgui.Dialog().yesno(self.__language__(30167), "Proceed with the following server?", self.__language__(30169) + serverInfo) if setServer == 1: