diff --git a/vcr/cassette.py b/vcr/cassette.py index b68209d..7b6f8a2 100644 --- a/vcr/cassette.py +++ b/vcr/cassette.py @@ -77,7 +77,8 @@ class Cassette(ContextDecorator): # The cassette doesn't contain the request asked for. raise UnhandledHTTPRequestError( "The cassette (%r) doesn't contain the request (%r) asked for" - % (self._path,request)) + % (self._path, request) + ) def responses_of(self, request): ''' @@ -94,7 +95,8 @@ class Cassette(ContextDecorator): # The cassette doesn't contain the request asked for. raise UnhandledHTTPRequestError( "The cassette (%r) doesn't contain the request (%r) asked for" - % (self._path,request)) + % (self._path, request) + ) def _as_dict(self): return {"requests": self.requests, "responses": self.responses} diff --git a/vcr/stubs/__init__.py b/vcr/stubs/__init__.py index 1404f85..170efdc 100644 --- a/vcr/stubs/__init__.py +++ b/vcr/stubs/__init__.py @@ -176,7 +176,7 @@ class VCRConnectionMixin: raise CannotOverwriteExistingCassetteException( "Can't overwrite existing cassette (%r) in " "your current record mode (%r)." - % (self.cassette._path, self.cassette.record_mode) + % (self.cassette._path, self.cassette.record_mode) ) # Otherwise, we should send the request, then get the response