mirror of
https://github.com/taoky/shadowmire.git
synced 2025-07-08 17:32:43 +00:00
Reformat with ruff
This commit is contained in:
parent
1c8b0199b4
commit
f653de5a98
@ -1092,12 +1092,15 @@ class SyncPlainHTTP(SyncBase):
|
|||||||
if not success:
|
if not success:
|
||||||
if resp and resp.status_code == 404:
|
if resp and resp.status_code == 404:
|
||||||
# handle special case: upstream filters out some files
|
# handle special case: upstream filters out some files
|
||||||
logger.warning("cannot find %s at upstream, fallback to pypi", url)
|
logger.warning(
|
||||||
|
"cannot find %s at upstream, fallback to pypi", url
|
||||||
|
)
|
||||||
url = i["url"] # original pypi URL
|
url = i["url"] # original pypi URL
|
||||||
success, resp = download(self.session, url, dest)
|
success, resp = download(self.session, url, dest)
|
||||||
if not success:
|
if not success:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
"skipping %s as it fails downloading (from pypi)", package_name
|
"skipping %s as it fails downloading (from pypi)",
|
||||||
|
package_name,
|
||||||
)
|
)
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user