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

Fix Cryptic 'write-protected' Message

Closes #46
This commit is contained in:
Kevin McCarthy
2013-12-01 13:46:44 -10:00
parent ea13d51677
commit b84f8e963b

View File

@@ -170,7 +170,7 @@ class VCRConnectionMixin:
return VCRHTTPResponse(response)
else:
if self.cassette.write_protected:
raise Exception("cassette is write protected")
raise Exception("Can't overwrite existing cassette in your current record mode.")
# Otherwise, we should send the request, then get the response
# and return it.