manuskript/manuskript
Jan Wester 5117f7d476 Logging uncaught & unraisable exceptions
When implementing most of the logging code weeks ago, I got so caught up
in implementing and testing the Qt bits that I completely blanked on
actually implementing the Python-side of catching exceptions.

Unfortunately, it is not exactly trivial. PyQt complicates things, but
also Python itself isn't very helpful in older versions which will rob
the ability to properly log errors from threads. By the time I realized
we don't actually use the threading module and that catching the errors
on there does not actually help to fix the weirdness I was seeing, it
was already implemented. Thank you PyQt for surprising me yet again! :-)

I have tested this on Python 3.7 by raising random exceptions in various
parts of the codebase to make sure it behaves as expected. I haven't
quite gotten around to installing Python 3.8 yet but this gets it out
for testing. I'll hopefully not forget to do more tests in 3.8 when I do
the final squashing prior to a merge.
2021-04-08 18:44:28 +02:00
..
converters Converted most print statements to use logging 2021-04-08 18:44:28 +02:00
exporter Converted most print statements to use logging 2021-04-08 18:44:28 +02:00
functions Log the git revision if applicable 2021-04-08 18:44:28 +02:00
importer Fixed all Python syntax warnings 2021-02-21 23:45:34 +01:00
load_save Converted version_1.py to new logging style 2021-04-08 18:44:28 +02:00
models Converted most print statements to use logging 2021-04-08 18:44:28 +02:00
tests Added logging & proper argument parsing. 2021-04-08 18:29:15 +02:00
ui Comprehensively log all version information 2021-04-08 18:44:28 +02:00
__init__.py Renaming source folder 2016-02-06 08:38:33 +01:00
enums.py Add global search 2021-04-02 14:15:17 +01:00
loadSave.py Converted most print statements to use logging 2021-04-08 18:44:28 +02:00
logging.py Logging uncaught & unraisable exceptions 2021-04-08 18:44:28 +02:00
main.py Comprehensively log all version information 2021-04-08 18:44:28 +02:00
mainWindow.py Converted most print statements to use logging 2021-04-08 18:44:28 +02:00
searchLabels.py Add global search 2021-04-02 14:15:17 +01:00
settings.py Converted most print statements to use logging 2021-04-08 18:44:28 +02:00
settingsWindow.py Fixed issue #817 with the settings style picking 2021-02-21 23:59:23 +01:00
version.py ========== manuskript-0.11.0 ========== 2020-01-18 10:37:45 -07:00