From 2b34878441e8c395f1e62180079f0598ce453d69 Mon Sep 17 00:00:00 2001 From: Alex Vidal Date: Tue, 22 Feb 2011 11:20:14 -0600 Subject: [PATCH] clean up metacritic error messages --- plugins/metacritic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/metacritic.py b/plugins/metacritic.py index c614926..292072b 100644 --- a/plugins/metacritic.py +++ b/plugins/metacritic.py @@ -32,8 +32,8 @@ def metacritic(inp): try: doc = http.get_html(url) - except HTTPError, e: - return 'fetch returned error %d' % e.code + except HTTPError: + return 'error fetching results' ''' result format: -- game result, with score @@ -96,7 +96,7 @@ def metacritic(inp): break if not result: - return 'could not fetch results' + return 'no results found' # get the name, release date, and score from the result name = result.find_class('product_title')[0].text_content()