]> git.parisson.com Git - teleforma.git/commitdiff
fix ip
authoryomguy <yomguy@parisson.com>
Wed, 5 Dec 2012 17:49:41 +0000 (18:49 +0100)
committeryomguy <yomguy@parisson.com>
Wed, 5 Dec 2012 17:49:41 +0000 (18:49 +0100)
teleforma/context_processors.py

index fc5a0595303bc1ca73903004f7b383df4125fbd7..64aea0f4c8bce329e641d68e935897ef660fd8d3 100644 (file)
@@ -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