summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/leap/platform_init/initializers.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/leap/platform_init/initializers.py b/src/leap/platform_init/initializers.py
index 427b3da4..ac08e23f 100644
--- a/src/leap/platform_init/initializers.py
+++ b/src/leap/platform_init/initializers.py
@@ -30,7 +30,11 @@ logger = logging.getLogger(__name__)
def init_platform():
- initializer = globals()[platform.system() + "Initializer"]
+ initializer = None
+ try:
+ initializer = globals()[platform.system() + "Initializer"]
+ except:
+ pass
if initializer:
logger.debug("Running initializer for %s" % (platform.system(),))
initializer()