mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
fuzzymatcher fix: don't assume 'mime' is always present
This commit is contained in:
parent
d32c6d492b
commit
b3bc7765a1
@ -163,7 +163,7 @@ class FuzzyMatcher(object):
|
||||
return True
|
||||
|
||||
for match_filter in rule.match_filters:
|
||||
if match_filter['mime'] in (cdx['mime'], '*'):
|
||||
if match_filter['mime'] in (cdx.get('mime', ''), '*'):
|
||||
return match_filter['match'].search(url)
|
||||
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user