In <[email protected]> MRAB 
<[email protected]> writes:

> > Why wasn't the message printed out?
>
> You didn't add a __str__ method:

> class PvCamError(Exception):
>      def __init__(self, msg):
>          self.msg = msg
>      def __str__(self):
>          return self.msg

Wouldn't PvCamError inherit __str__() from Exception?

-- 
John Gordon                   A is for Amy, who fell down the stairs
[email protected]              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to