Hi. Can someone explain me where is my mistake. ----------------------------------------------- class Error(Exception): def printer(self , value ): self.value = value print self.value def oops(): raise Error def domoed(): try: oops() except Error: Test = Error() print 'Error: ', Test.printer('Test') else: print 'no error' if __name__ == "__main__": domoed() ------------------------------------------------------ Result is: Error: Test None >From where come it None -- Grigor Kolev <grigor.ko...@gmail.com>
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor