mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-11-24 04:43:24 +08:00
fix(types): guard nullable U115 download stream
This commit is contained in:
@@ -941,6 +941,8 @@ class U115Pan(StorageBase, metaclass=WeakSingleton):
|
||||
with self._request_utils.get_stream(
|
||||
download_url, raise_exception=True
|
||||
) as r:
|
||||
if r is None:
|
||||
return None
|
||||
r.raise_for_status()
|
||||
downloaded_size = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user