Skip to content

Commit 2f3bd45

Browse files
fix status error catching
1 parent 0d9762e commit 2f3bd45

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pyTigerGraph/pytgasync/pyTigerGraphGSQL.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ async def gsql(self, query: str, graphname: str = None, options=None) -> Union[s
5555
authMode="pwd", resKey=None, skipCheck=True,
5656
jsonResponse=False,
5757
headers={"Content-Type": "text/plain"})
58-
59-
except httpx.HTTPError as e:
58+
except httpx.HTTPStatusError as e:
6059
if e.response.status_code == 404:
6160
res = await self._req("POST",
6261
self.gsUrl + "/gsqlserver/gsql/file",

0 commit comments

Comments
 (0)