From: yomguy Date: Wed, 5 Dec 2012 17:49:41 +0000 (+0100) Subject: fix ip X-Git-Tag: 1.3-TC~58 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=96449f0505569881aca0002d9d5386ce27b748d7;p=teleforma.git fix ip --- diff --git a/teleforma/context_processors.py b/teleforma/context_processors.py index fc5a0595..64aea0f4 100644 --- a/teleforma/context_processors.py +++ b/teleforma/context_processors.py @@ -23,10 +23,7 @@ def get_local_host(): local_ip = ip break except: - continue - - if not local_ip: - local_ip = '127.0.0.1' + local_ip = '127.0.0.1' return local_ip