1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +00:00

Split persister errors into CassetteNotFoundError and CassetteDecodeError (#681)

This commit is contained in:
Amos Ng
2023-06-26 23:27:35 +07:00
committed by GitHub
parent 8c03c37df4
commit d99593bcd3
5 changed files with 63 additions and 7 deletions

View File

@@ -136,7 +136,8 @@ Create your own persistence class, see the example below:
Your custom persister must implement both ``load_cassette`` and ``save_cassette``
methods. The ``load_cassette`` method must return a deserialized cassette or raise
``ValueError`` if no cassette is found.
either ``CassetteNotFoundError`` if no cassette is found, or ``CassetteDecodeError``
if the cassette cannot be successfully deserialized.
Once the persister class is defined, register with VCR like so...