From b84f8e963b9bff26d82b13daa26f7ea93f5244c0 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Sun, 1 Dec 2013 13:46:44 -1000 Subject: [PATCH] Fix Cryptic 'write-protected' Message Closes #46 --- vcr/stubs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcr/stubs/__init__.py b/vcr/stubs/__init__.py index 0553890..d389f82 100644 --- a/vcr/stubs/__init__.py +++ b/vcr/stubs/__init__.py @@ -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.