From f7240a33d797dd53a76cc3aacc8b699f970bb540 Mon Sep 17 00:00:00 2001 From: Vangelis Banos Date: Fri, 13 Oct 2017 19:42:41 +0000 Subject: [PATCH] Replace invalid warcfilename variable in playback A warcfilename variable which does not exists is used here. Replace it with the current variable for filename. --- warcprox/playback.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warcprox/playback.py b/warcprox/playback.py index 663e10a..7a9fead 100644 --- a/warcprox/playback.py +++ b/warcprox/playback.py @@ -131,7 +131,7 @@ class PlaybackProxyHandler(MitmProxyHandler): pass if errors: - raise Exception('warc errors at {}:{} -- {}'.format(warcfilename, offset, errors)) + raise Exception('warc errors at {}:{} -- {}'.format(location['f'], offset, errors)) warc_type = record.get_header(warctools.WarcRecord.TYPE) if warc_type != warctools.WarcRecord.RESPONSE: