libpurple/dbus-analyze-functions.py

branch
release-2.2.3
changeset 20289
5c844288fbec
parent 19910
411a13fc7b88
child 22200
a1756759e59c
--- a/libpurple/dbus-analyze-functions.py	Fri Nov 09 08:39:14 2007 +0000
+++ b/libpurple/dbus-analyze-functions.py	Fri Nov 09 08:48:40 2007 +0000
@@ -75,7 +75,11 @@
 ]
 
 pointer = "#pointer#"
-myexception = "My Exception"
+
+class MyException(Exception):
+    pass
+
+myexception = MyException()
 
 def ctopascal(name):
     newname = ""
@@ -520,7 +524,7 @@
 
             try:
                 self.processfunction(functiontext, paramtexts)
-            except myexception:
+            except MyException:
                 sys.stderr.write(myline + "\n")
             except:
                 sys.stderr.write(myline + "\n")

mercurial