Skip to content

Commit

Permalink
fix status error catching
Browse files Browse the repository at this point in the history
  • Loading branch information
parkererickson-tg committed Jan 17, 2025
1 parent 0d9762e commit 2f3bd45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyTigerGraph/pytgasync/pyTigerGraphGSQL.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ async def gsql(self, query: str, graphname: str = None, options=None) -> Union[s
authMode="pwd", resKey=None, skipCheck=True,
jsonResponse=False,
headers={"Content-Type": "text/plain"})

except httpx.HTTPError as e:
except httpx.HTTPStatusError as e:
if e.response.status_code == 404:
res = await self._req("POST",
self.gsUrl + "/gsqlserver/gsql/file",
Expand Down

0 comments on commit 2f3bd45

Please sign in to comment.