mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-23 03:19:38 +00:00
community[patch]: Release 0.2.11 (#24989)
This commit is contained in:
@@ -9,7 +9,7 @@ from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Union
|
||||
|
||||
import aiohttp
|
||||
import requests
|
||||
from aiohttp import ServerTimeoutError
|
||||
from aiohttp import ClientTimeout, ServerTimeoutError
|
||||
from langchain_core.pydantic_v1 import BaseModel, Field, root_validator, validator
|
||||
from requests.exceptions import Timeout
|
||||
|
||||
@@ -229,7 +229,7 @@ class PowerBIDataset(BaseModel):
|
||||
self.request_url,
|
||||
headers=self.headers,
|
||||
json=self._create_json_content(command),
|
||||
timeout=10,
|
||||
timeout=ClientTimeout(total=10),
|
||||
) as response:
|
||||
if response.status == 403:
|
||||
return "TokenError: Could not login to PowerBI, please check your credentials." # noqa: E501
|
||||
@@ -240,7 +240,7 @@ class PowerBIDataset(BaseModel):
|
||||
self.request_url,
|
||||
headers=self.headers,
|
||||
json=self._create_json_content(command),
|
||||
timeout=10,
|
||||
timeout=ClientTimeout(total=10),
|
||||
) as response:
|
||||
if response.status == 403:
|
||||
return "TokenError: Could not login to PowerBI, please check your credentials." # noqa: E501
|
||||
|
Reference in New Issue
Block a user