mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
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:
parent
9b8043d3a2
commit
f7240a33d7
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user