Permalink
Browse files

Eliminate string exception. (Issue #13)

No longer valid in 2.6+

Signed-off-by: Jack Miller <jack@codezen.org>
  • Loading branch information...
1 parent 00aa79b commit 9fc8283d77d19654d99c0127b301d80b9b3783e4 @themoken committed Jul 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 canto/cfg/hooks.py
View
@@ -40,7 +40,7 @@ def validate(c):
if not hk:
continue
if not hasattr(hk, "__call__"):
- raise "All hooks must be callable. (%s)" % hk
+ raise TypeError("All hooks must be callable. (%s)" % hk)
setattr(c, h, hook_dec(c, hk))
def test(c):

0 comments on commit 9fc8283

Please sign in to comment.