summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/conf/__init__.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/pykolab/conf/__init__.py b/pykolab/conf/__init__.py
index b078162..69d592e 100644
--- a/pykolab/conf/__init__.py
+++ b/pykolab/conf/__init__.py
@@ -48,14 +48,15 @@ class Conf(object):
self.entitlement = None
- from pykolab.conf.entitlement import Entitlement
- self.entitlement = Entitlement().get()
-
- #try:
- #from pykolab.conf.entitlement import Entitlement
- #self.entitlement = Entitlement().get()
- #except:
- #pass
+ try:
+ from pykolab.conf.entitlement import Entitlement
+ entitlements = True
+ except:
+ entitlements = False
+ pass
+
+ if entitlements:
+ self.entitlement = Entitlement().get()
self.plugins = None