summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hircine/scraper/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hircine/scraper/utils.py b/src/hircine/scraper/utils.py
index 6afa2ed..1c1fbee 100644
--- a/src/hircine/scraper/utils.py
+++ b/src/hircine/scraper/utils.py
@@ -27,11 +27,11 @@ def parse_dict(parsers, data):
value = data[field]
if isinstance(value, list):
- yield from [lambda i=x: parser(i) for x in value]
+ yield from [lambda x=x, parser=parser: parser(x) for x in value]
elif isinstance(value, dict):
yield from parse_dict(parser, value)
else:
- yield lambda: parser(value)
+ yield lambda parser=parser, value=value: parser(value)
@contextmanager