summaryrefslogtreecommitdiff
path: root/chimere/route.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-04-01 15:00:49 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-04-01 15:00:49 +0200
commitdf17f73a6568d261a640319b9700596be176fb93 (patch)
tree2cc1b46e1d77feb996f7b3f38d8af102561240fb /chimere/route.py
parent6cb0937a6f57cd3644669c366dece6a50950d766 (diff)
downloadChimère-df17f73a6568d261a640319b9700596be176fb93.tar.bz2
Chimère-df17f73a6568d261a640319b9700596be176fb93.zip
Be more flexible on settings configuration
Diffstat (limited to 'chimere/route.py')
-rw-r--r--chimere/route.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/chimere/route.py b/chimere/route.py
index eaa762a..8c4638a 100644
--- a/chimere/route.py
+++ b/chimere/route.py
@@ -115,6 +115,7 @@ class RoutinoRouter(Router):
return lbl
router = None
-if settings.CHIMERE_ROUTING_ENGINE['ENGINE'] == 'routino':
+if hasattr(settings, 'CHIMERE_ROUTING_ENGINE') and \
+ settings.CHIMERE_ROUTING_ENGINE['ENGINE'] == 'routino':
router = RoutinoRouter()