mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-05 07:37:05 +08:00
fix ruff
This commit is contained in:
parent
ffc6b610b6
commit
33da9e40c7
@ -95,7 +95,7 @@ import logging
|
|||||||
import time
|
import time
|
||||||
import io
|
import io
|
||||||
import socket
|
import socket
|
||||||
from typing import Dict, Type, Optional, Any, TypeVar, Generic, Callable, Tuple, List, Union
|
from typing import Dict, Type, Optional, Any, TypeVar, Generic, Callable, Tuple
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
import json
|
import json
|
||||||
import requests
|
import requests
|
||||||
@ -431,8 +431,8 @@ class ApiClient:
|
|||||||
|
|
||||||
if connectivity["is_local_issue"]:
|
if connectivity["is_local_issue"]:
|
||||||
raise LocalNetworkError(
|
raise LocalNetworkError(
|
||||||
f"Unable to connect to the API server due to local network issues. "
|
"Unable to connect to the API server due to local network issues. "
|
||||||
f"Please check your internet connection and try again."
|
"Please check your internet connection and try again."
|
||||||
) from e
|
) from e
|
||||||
elif connectivity["is_api_issue"]:
|
elif connectivity["is_api_issue"]:
|
||||||
raise ApiServerError(
|
raise ApiServerError(
|
||||||
|
|||||||
@ -123,4 +123,3 @@ if __name__ == '__main__':
|
|||||||
response_status_code=200,
|
response_status_code=200,
|
||||||
response_content=b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR...' # Sample binary data
|
response_content=b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR...' # Sample binary data
|
||||||
)
|
)
|
||||||
print(f"Test logs should be in: {get_log_directory()}")
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user