summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2018-02-08 01:26:41 +0100
committerKali Kaneko <kali@leap.se>2018-02-15 16:36:40 +0100
commitf894c913796842b29ca8eac5aea19bae75655eb7 (patch)
tree6267390f83470d9ce42accee5116062aef5313d5 /src/leap
parent48257bd03d792188931f79b4239525725b322c09 (diff)
[bug] fail gracefully on dummy imports
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/bitmask/core/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/leap/bitmask/core/__init__.py b/src/leap/bitmask/core/__init__.py
index 35adb84c..644441f6 100644
--- a/src/leap/bitmask/core/__init__.py
+++ b/src/leap/bitmask/core/__init__.py
@@ -7,9 +7,12 @@ import platform
def dummy_imports():
import service
- import uuid_map
- import mail_services
import dispatcher
+ try:
+ import uuid_map
+ import mail_services
+ except ImportError:
+ pass
APPNAME = "bitmask.core"