summaryrefslogtreecommitdiffstats
path: root/pykolab/telemetry.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/telemetry.py')
-rw-r--r--pykolab/telemetry.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pykolab/telemetry.py b/pykolab/telemetry.py
index 345e49c..0b95da8 100644
--- a/pykolab/telemetry.py
+++ b/pykolab/telemetry.py
@@ -41,7 +41,12 @@ from sqlalchemy.interfaces import PoolListener
from sqlalchemy import create_engine
from sqlalchemy.orm import mapper
-from sqlalchemy.orm import relationship
+
+try:
+ from sqlalchemy.orm import relationship
+except:
+ from sqlalchemy.orm import relation as relationship
+
try:
from sqlalchemy.orm import sessionmaker
except: