21 Aug
2002
21 Aug
'02
6:48 p.m.
John Hunter writes:
... if typ == 'text/plain' or typ=='text/html': try: ob = StructuredDocument( body, __name__=name ) except: h.write('Could not create STX') ob = None return ob return None ... Output: ... Could not create STX Look at Python's "traceback" module (--> Python Library Reference). It contains the function "print_exc" that allows you to format the exception and put the result into a file. This will tell you the cause of the problem.
Dieter