fix: unintended return type change.
This commit is contained in:
parent
fe0a1c5b70
commit
da9f082978
2 changed files with 3 additions and 3 deletions
|
|
@ -167,7 +167,7 @@ class Download:
|
|||
follow_redirect=True,
|
||||
capture_logs=logging.WARNING,
|
||||
)
|
||||
self.logs = [log["msg"] for log in logs]
|
||||
self.logs = logs
|
||||
|
||||
if info:
|
||||
self.info_dict = info
|
||||
|
|
|
|||
|
|
@ -257,10 +257,10 @@ def extract_info_sync(
|
|||
level=logging.DEBUG if debug else logging.WARNING,
|
||||
)
|
||||
|
||||
captured_logs: list[dict[str, Any]] = kwargs.get("captured_logs", [])
|
||||
captured_logs: list[str] = kwargs.get("captured_logs", [])
|
||||
if capture_logs is not None:
|
||||
log_wrapper.add_target(
|
||||
target=lambda level, msg: captured_logs.append({"level": level, "msg": msg}),
|
||||
target=lambda _, msg: captured_logs.append(msg),
|
||||
level=capture_logs,
|
||||
name="log-capture",
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue