[PATCH] Don't raise text exceptions in misc.py



Use the Exception("MESSAGE GOES HERE") constructor instead

-- 
Vincent Legoll
Index: misc.py
===================================================================
--- misc.py	(révision 1182)
+++ misc.py	(copie de travail)
@@ -204,7 +204,7 @@
                     if len(state[2]) == 0:
                         yield None
                     else:
-                        raise "Error reading pipe"
+                        raise Exception("Error reading pipe")
                 if childout in state[0]:
                     try:
                         bits.append( childout.read(4096) ) # get buffer size


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]