[PATCH] Don't raise text exceptions in misc.py
- From: Vincent Legoll <vincent legoll gmail com>
- To: meld-list gnome org
- Subject: [PATCH] Don't raise text exceptions in misc.py
- Date: Thu, 26 Feb 2009 21:58:12 +0100
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]