summaryrefslogtreecommitdiff
path: root/src/leap/config/prefixers.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/config/prefixers.py')
-rw-r--r--src/leap/config/prefixers.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/leap/config/prefixers.py b/src/leap/config/prefixers.py
index a33e68aa..20d59b2d 100644
--- a/src/leap/config/prefixers.py
+++ b/src/leap/config/prefixers.py
@@ -24,6 +24,8 @@ import platform
from abc import ABCMeta, abstractmethod
from xdg import BaseDirectory
+from leap.util.check import leap_assert
+
class Prefixer:
"""
@@ -47,8 +49,8 @@ class Prefixer:
def get_platform_prefixer():
prefixer = globals()[platform.system() + "Prefixer"]
- assert prefixer, "Unimplemented platform prefixer: %s" % \
- (platform.system(),)
+ leap_assert(prefixer, "Unimplemented platform prefixer: %s" %
+ (platform.system(),))
return prefixer()