Anki/pylib/tests
David Culley c0349ea9da
Improve exception handling (#3290)
* fix: except only non-system-exiting exceptions

see https://youtu.be/zrVfY9SuO64

* chore: add myself to CONTRIBUTORS file

* refactor: explicitly specify possible exceptions

If an exception is not an Exception, there are only three options left.
see https://docs.python.org/3/library/exceptions.html#exception-hierarchy

* refactor: use BaseException for fallback

Co-authored-by: Damien Elmes <dae@users.noreply.github.com>

* chore: add myself to contributors
2024-08-04 20:51:13 +07:00
..
support tweaking the folder names again 2020-01-03 07:48:38 +10:00
__init__.py replace the old stripHTML() methods with the backend implementation 2021-10-01 23:15:45 +10:00
shared.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
test_cards.py Drop support for checkpoints (#2742) 2023-10-17 12:43:34 +10:00
test_collection.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
test_decks.py Drop support for checkpoints (#2742) 2023-10-17 12:43:34 +10:00
test_exporting.py Drop support for checkpoints (#2742) 2023-10-17 12:43:34 +10:00
test_find.py Drop support for checkpoints (#2742) 2023-10-17 12:43:34 +10:00
test_flags.py PEP8 collection.py 2021-06-27 15:12:22 +10:00
test_importing.py Improve exception handling (#3290) 2024-08-04 20:51:13 +07:00
test_latex.py Add a preference to toggle LaTeX generation (#3218) 2024-06-01 09:26:28 +01:00
test_media.py PEP8 for rest of pylib (#1451) 2021-10-25 14:50:13 +10:00
test_models.py Dependency updates (#3040) 2024-02-28 16:28:04 +07:00
test_schedv3.py Update type annotations (#3322) 2024-07-26 17:57:25 +07:00
test_stats.py Drop support for checkpoints (#2742) 2023-10-17 12:43:34 +10:00
test_template.py PEP8 cards.py 2021-06-27 12:12:23 +10:00
test_utils.py Fix add-ons screen showing 'requires Anki >= 2.1.231000' 2023-11-05 11:16:09 +10:00