Merge pull request #40 from vbanos/bugfix-warcfilename

Replace invalid warcfilename variable in playback
This commit is contained in:
Noah Levitt 2017-10-13 13:51:11 -07:00 committed by GitHub
commit ad8c1d0658

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: