Skip to content

Stable version v1.6.0

Choose a tag to compare

@Dragon2fly Dragon2fly released this 11 Jun 15:51
· 97 commits to master since this release
  1. Exception on the multiline statement
    From python 3.6 to 3.9, the tokenize module and the exception traceback have changed their behavior. So if a multiline statement raised an exception, the lines reported were different between different python versions. Sometimes, too many unrelated lines were reported too.

    • This release tries to mitigate that and grabs all the lines of the multiline statement as correctly as possible.
    • If there are too many lines, it limits the line to be shown to 10.
  2. Logging uncaught exception in child thread
    Child thread is run in a try-finally by default, so it doesn't call sys.excepthook when an uncaught exception occurred.
    So logger-tt doesn't receive the traceback to log it.
    This release replaces the thread default try-finally to try-except-finally and logger-tt handles the uncaught exception normally.

    Python 3.8+ has a new thread.excepthook. But since logger-tt has already handled the uncaught exception, this thread.excepthook won't be called.