From: Kevin McCarthy Date: Sun, 1 Dec 2013 23:46:44 +0000 (-1000) Subject: Fix Cryptic 'write-protected' Message X-Git-Tag: v0.5.0~3 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=b84f8e963b9bff26d82b13daa26f7ea93f5244c0;p=vcrpy.git Fix Cryptic 'write-protected' Message Closes #46 --- 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.