From: khamidou Date: Mon, 22 Feb 2010 16:19:36 +0000 (+0100) Subject: fixed a weird proxy problem by using the canonical domain name X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=6ecdf4a597db84bb78a5ad5f3948d764d87f99d3;p=liszt.git fixed a weird proxy problem by using the canonical domain name --- diff --git a/libliszt/utils.py b/libliszt/utils.py index 8e42102..c9603d2 100644 --- a/libliszt/utils.py +++ b/libliszt/utils.py @@ -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