mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-28 01:18:30 +00:00
[devalue] uniform error messages
Authored by: bashonly
This commit is contained in:
parent
afa47b8715
commit
b547689d1c
@ -64,7 +64,7 @@ def parse_iter(parsed: typing.Any, /, *, revivers: dict[str, collections.abc.Cal
|
|||||||
try:
|
try:
|
||||||
resolved[source] = target[index] = reviver(target[index])
|
resolved[source] = target[index] = reviver(target[index])
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
yield TypeError(f'Failed to parse {source} as {name!r}: {error}')
|
yield TypeError(f'failed to parse {source} as {name!r}: {error}')
|
||||||
resolved[source] = target[index] = None
|
resolved[source] = target[index] = None
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user