Skip to content

Commit 055ec6b

Browse files
only log message if response is appended
Closes: kevin1024#685
1 parent 19bd4e0 commit 055ec6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vcr/cassette.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ def write_protected(self):
225225

226226
def append(self, request, response):
227227
"""Add a request, response pair to this cassette"""
228-
log.info("Appending request %s and response %s", request, response)
229228
request = self._before_record_request(request)
230229
if not request:
231230
return
231+
log.info("Appending request %s and response %s", request, response)
232232
# Deepcopy is here because mutation of `response` will corrupt the
233233
# real response.
234234
response = copy.deepcopy(response)

0 commit comments

Comments
 (0)