Author: dmeyer
Date: Sat Dec 2 22:17:53 2006
New Revision: 2147
Modified:
trunk/base/src/notifier/callback.py
Log:
raise better exception
Modified: trunk/base/src/notifier/callback.py
==============================================================================
--- trunk/base/src/notifier/callback.py (original)
+++ trunk/base/src/notifier/callback.py Sat Dec 2 22:17:53 2006
@@ -354,9 +354,9 @@
if len(self._callbacks) > 40:
# It's a common problem (for me :)) that callbacks get added
# inside another callback. This is a simple sanity check.
- print "Signal callbacks exceeds 40. Something's wrong!"
- print callback, args
- raise Exception
+ log.error("Signal callbacks exceeds 40. Something's wrong!")
+ log.error("%s: %s", callback, args)
+ raise Exception("Signal callbacks exceeds 40")
if weak:
callback = WeakCallback(callback)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog