From ed3301a5236bf6afe28a1623087aa75c30610aa1 Mon Sep 17 00:00:00 2001 From: croneter Date: Tue, 10 Dec 2019 08:15:10 +0100 Subject: [PATCH] Fix PKC not starting up on iOS --- resources/lib/variables.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/resources/lib/variables.py b/resources/lib/variables.py index 2ccc241d..3cba3bc2 100644 --- a/resources/lib/variables.py +++ b/resources/lib/variables.py @@ -69,7 +69,14 @@ elif xbmc.getCondVisibility('system.platform.android'): else: 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')) if not DEVICENAME: