diff options
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 |
commit | df17f73a6568d261a640319b9700596be176fb93 (patch) | |
tree | 2cc1b46e1d77feb996f7b3f38d8af102561240fb /chimere/route.py | |
parent | 6cb0937a6f57cd3644669c366dece6a50950d766 (diff) | |
download | Chimè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.py | 3 |
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() |