From 6ecdf4a597db84bb78a5ad5f3948d764d87f99d3 Mon Sep 17 00:00:00 2001 From: khamidou Date: Mon, 22 Feb 2010 17:19:36 +0100 Subject: [PATCH] fixed a weird proxy problem by using the canonical domain name --- libliszt/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.43.0