Anki/pylib/anki/importing
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
..
__init__.py Update type annotations (#3322) 2024-07-26 17:57:25 +07:00
anki2.py Update type annotations to use | operator (#3323) 2024-07-26 18:15:39 +07:00
apkg.py Update type annotations to use | operator (#3323) 2024-07-26 18:15:39 +07:00
base.py Update type annotations to use | operator (#3323) 2024-07-26 18:15:39 +07:00
csvfile.py Improve exception handling (#3290) 2024-08-04 20:51:13 +07:00
mnemo.py Dependency updates (#3040) 2024-02-28 16:28:04 +07:00
noteimp.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
pauker.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
supermemo_xml.py Update type annotations to use | operator (#3323) 2024-07-26 18:15:39 +07:00