Use another name for the stacktrace argument to the treat_exceptions() function.  It conflicted with the name of the traceback module.