summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPriit Laes <plaes@plaes.org>2010-02-26 09:13:56 +0200
committerMart Raudsepp <leio@gentoo.org>2010-02-26 11:09:32 +0200
commit6b5e237f0b728d4a507ba0e1bec07df869176127 (patch)
treef36530887f3ca62676f5f8320e36330afeedb1b5 /modules
parentFix pixman versioning detection. (diff)
downloadgentoo-bumpchecker-6b5e237f0b728d4a507ba0e1bec07df869176127.tar.gz
gentoo-bumpchecker-6b5e237f0b728d4a507ba0e1bec07df869176127.tar.bz2
gentoo-bumpchecker-6b5e237f0b728d4a507ba0e1bec07df869176127.zip
Fix error display by using correct exception.
String exceptions have been deprecated a long time ago.
Diffstat (limited to 'modules')
-rw-r--r--modules/gnome_module.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gnome_module.py b/modules/gnome_module.py
index c9d498b..85ec28b 100644
--- a/modules/gnome_module.py
+++ b/modules/gnome_module.py
@@ -38,7 +38,7 @@ class GNOME:
try:
f = urllib2.urlopen(url)
except:
- raise "Couldn't open", url
+ raise ValueError("Couldn't open %s" % url)
ret = []
for line in f.readlines():