[storm] Exception handling

Drew Smathers drew.smathers at gmail.com
Tue Sep 18 23:13:32 BST 2007


>             if Exception.__str__(e) == 'duplicate key violates unique
> constraint "users_username_key':

This is a really bad idea, since the string message is by no means
part of the contract of an exception - and in some systems may even be
localized to some other language ;)


-- 
\\\\\/\"/\\\\\\\\\\\
\\\\/ // //\/\\\\\\\
\\\/  \\// /\ \/\\\\
\\/ /\/ / /\/ /\ \\\
\/ / /\/ /\  /\\\ \\
/ /\\\  /\\\ \\\\\/\
\/\\\\\/\\\\\/\\\\\\
               d.p.s



More information about the storm mailing list