diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-03-25 13:31:53 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-03-25 13:31:53 -0300 |
commit | ee2ea741883aa6fa3b168431d588f20a5e90f5f2 (patch) | |
tree | 4c7379a93e26eaf49d591d30f4113d98f77bba92 | |
parent | 310eff047bdc8f5c5cbd4890f91f9cf492c68922 (diff) |
Make it not fail in any other platform
-rw-r--r-- | src/leap/platform_init/initializers.py | 6 |
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() |