A change introduced in mypy 0.770 disallows overriding some system modules, including `sys`. We only need the override for `sys.print_exception`, and the simplest solution is to make mypy ignore that particular call.
* core: improve log output for ui.Result exception updates #373 * core: avoid importing ui module