]> khamidou — GitHub mirrors - liszt.git/commitdiff
fixed a weird proxy problem by using the canonical domain name
authorkhamidou <khamidou@gmail.com>
Mon, 22 Feb 2010 16:19:36 +0000 (17:19 +0100)
committerkhamidou <khamidou@gmail.com>
Mon, 22 Feb 2010 16:19:36 +0000 (17:19 +0100)
libliszt/utils.py

index 8e4210297bb0a52de10e1ec8598cf18f25022022..c9603d2314041f579d9c8161e3cad7a2b1a71917 100644 (file)
@@ -14,7 +14,7 @@ try:
 except ImportError:
     import simplejson as json                                                                                                                         
 
-base = "http://localhost:8080/api/v1"
+base = "http://www.todoliszt.com/api/v1"
 
 def bailout(msg):
     print msg
@@ -174,8 +174,8 @@ class LisztSession:
             try:
                 urllib2.urlopen(base + "/login/", ed)
                 return
-            except URLError, HTTPError:
-                print "Unable to log you in"
+            except URLError, http_error:
+                print "Unable to log you in - http error code " + str(http_error.code)
                 time.sleep(5 * 60) # Try to reconnect every five minutes.
                 continue