I have a bit of code that uses a module and I am trying to get more info on the error.

 

I am using this bit of code:

 

    try:

        rhfill    = Ngl.contour(wks,rhisobar,rh_res)

    except:

        execType,value,tracebak = sys.exc_info()[:3]

        print execType

        print value

        print tracebak

 

In the log file I get this:

 

exceptions.SystemError

error return without exception set

<traceback object at 0xb6cf2c84>

 

How do I get the actual traceback so I can read it?

 

Thanks,

 

John Ertl

 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to