From 351622debc20f4694c1ebb331ac9fd2bcda47d70 Mon Sep 17 00:00:00 2001 From: Christophe Benz Date: Mon, 12 Jul 2010 03:14:17 +0200 Subject: [PATCH] no more display data when Page is not found --- weboob/tools/browser/browser.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/weboob/tools/browser/browser.py b/weboob/tools/browser/browser.py index 03342928..59bddadc 100644 --- a/weboob/tools/browser/browser.py +++ b/weboob/tools/browser/browser.py @@ -314,11 +314,11 @@ class BaseBrowser(mechanize.Browser): # Not found if not pageCls: self.page = None - r = result.read() - if isinstance(r, unicode): - r = r.encode('iso-8859-15', 'replace') - print r - warning('Ho my fucking god, there isn\'t any page named %s' % result.geturl()) + #data = result.read() + #if isinstance(data, unicode): + # data = data.encode('utf-8') + #print data + warning('Oh my fucking god, there isn\'t any page corresponding to URL %s' % result.geturl()) return debug('[user_id=%s] Went on %s' % (self.username, result.geturl()))