← Back to team overview

registry team mailing list archive

[Bug 604694] Re: Python string exceptions no more allowed in Python 2.6

 

#2 is wrong, please take the following:

--- freesound.py.orig	2010-07-12 18:39:32.417223193 +0200
+++ freesound.py	2010-07-12 18:40:33.853668496 +0200
@@ -249,7 +249,7 @@
 		dom = minidom.parseString(data)
 		
 		if dom.documentElement.nodeName != "freesound":
-			raise "Search failed"
+			raise Exception("Search failed")
 		
 		return [Sample(sample.getAttribute("id")) for sample in
 				dom.getElementsByTagName('sample')]


** Also affects: jokosher (Ubuntu)
   Importance: Undecided
       Status: New

** Bug watch added: Debian Bug tracker #585238
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=585238

** Also affects: jokosher (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=585238
   Importance: Unknown
       Status: Unknown

** Changed in: jokosher (Ubuntu)
       Status: New => In Progress

** Changed in: jokosher (Ubuntu)
   Importance: Undecided => Medium

** Changed in: jokosher (Ubuntu)
     Assignee: (unassigned) => Alessio Treglia (quadrispro)

-- 
Python string exceptions no more allowed in Python 2.6
https://bugs.launchpad.net/bugs/604694
You received this bug notification because you are a member of Registry
Administrators, which is the registrant for Debian.