Re: [Twisted-Python] How to show traceback of "Unhandled error"?

2018-05-18 Thread Jason Litzinger
> Try this: > > > from twisted.logger import globalLogBeginner, textFileLogObserver > from twisted.internet.defer import Deferred > import sys > > globalLogBeginner.beginLoggingTo([textFileLogObserver(sys.stdout)]) > > def raiseErr(what): > raise Exception(what) > > d = Deferred() >

Re: [Twisted-Python] How to show traceback of "Unhandled error"?

2018-05-18 Thread Mark Williams
This is an unfortunate implementation detail that you can address by starting the logging system. Try this: from twisted.logger import globalLogBeginner, textFileLogObserver from twisted.internet.defer import Deferred import sys

Re: [Twisted-Python] Canonical way to run trial with Python3

2018-05-18 Thread Mark Williams
On Thu, May 17, 2018, at 11:51 PM, Werner Thie wrote: > Aloha > > Are there any suggestions on how to run trial on a given package to be > ported to Python 3 > Use an editable installation. trial won't automatically find unported modules in an editable installation, but you run it against any

[Twisted-Python] How to show traceback of "Unhandled error"?

2018-05-18 Thread Shiyao MA
Hi, Running the following script prints "Unhandled Error", but doesn't contain the traceback of where the exception is raised. In a massive codebase, it's hard to locate where is the malfunctioning code is. from twisted.internet.defer import Deferred def raiseErr(what): raise