Merge pull request #1084 from croneter/fix-importerror
Fix PKC not starting up on iOS
This commit is contained in:
commit
d84b7ccbe3
1 changed files with 8 additions and 1 deletions
|
@ -69,7 +69,14 @@ elif xbmc.getCondVisibility('system.platform.android'):
|
||||||
else:
|
else:
|
||||||
DEVICE = "Unknown"
|
DEVICE = "Unknown"
|
||||||
|
|
||||||
MODEL = platform.release() or 'Unknown'
|
try:
|
||||||
|
MODEL = platform.release() or 'Unknown'
|
||||||
|
except IOError:
|
||||||
|
# E.g. iOS
|
||||||
|
# It seems that Kodi doesn't allow python to spawn subprocesses in order to
|
||||||
|
# determine the system name
|
||||||
|
# See https://github.com/psf/requests/issues/4434
|
||||||
|
MODEL = 'Unknown'
|
||||||
|
|
||||||
DEVICENAME = try_decode(_ADDON.getSetting('deviceName'))
|
DEVICENAME = try_decode(_ADDON.getSetting('deviceName'))
|
||||||
if not DEVICENAME:
|
if not DEVICENAME:
|
||||||
|
|
Loading…
Reference in a new issue