r7102 - bigboard/trunk/bigboard/stocks/apps
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7102 - bigboard/trunk/bigboard/stocks/apps
- Date: Thu, 20 Dec 2007 09:30:27 -0600 (CST)
Author: walters
Date: 2007-12-20 09:30:27 -0600 (Thu, 20 Dec 2007)
New Revision: 7102
Modified:
bigboard/trunk/bigboard/stocks/apps/apps.py
Log:
Don't print error about uncached apps xml.
Modified: bigboard/trunk/bigboard/stocks/apps/apps.py
===================================================================
--- bigboard/trunk/bigboard/stocks/apps/apps.py 2007-12-19 23:24:30 UTC (rev 7101)
+++ bigboard/trunk/bigboard/stocks/apps/apps.py 2007-12-20 15:30:27 UTC (rev 7102)
@@ -232,8 +232,11 @@
child_nodes=reply_root.childNodes)
self.__handler(apps)
- def __on_error(self, *args):
- _logger.error("failed to get http request %s: %s", self.__relative_url, args)
+ def __on_error(self, url, args):
+ if 'status' in args and args['status'] == '504':
+ _logger.debug("don't have local cache for %s", url)
+ else:
+ _logger.error("failed to get http request %s: %s", self.__relative_url, args)
self.__handler([])
def __do_download(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]