Replace invalid warcfilename variable in playback

A warcfilename variable which does not exists is used here. Replace it
with the current variable for filename.
This commit is contained in:
Vangelis Banos 2017-10-13 19:42:41 +00:00
parent 9b8043d3a2
commit f7240a33d7

View File

@ -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: