[filters] handle TypeError in json parsing filter
This commit is contained in:
parent
925beee16f
commit
98a8b1509b
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ class Dict(Filter):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
content = content[el]
|
content = content[el]
|
||||||
except (KeyError, IndexError):
|
except (KeyError, IndexError, TypeError):
|
||||||
return _NOT_FOUND
|
return _NOT_FOUND
|
||||||
|
|
||||||
return content
|
return content
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue