Skip to content

Commit

Permalink
Added check for substring in newer version loading jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunaid Shakoor authored and Hunaid Shakoor committed May 16, 2024
1 parent 9046e0c commit 1c2ab80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyTigerGraph/pyTigerGraphGSQL.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def check_error(query: str, resp: str) -> None:
if "Successfully created loading jobs" not in resp:
raise TigerGraphException(resp)
if "RUN LOADING JOB" in query.upper():
if "LOAD SUCCESSFUL to TigerGraph" or "LOAD SUCCESSFUL for loading jobid" not in resp: not in resp:
if "LOAD SUCCESSFUL to TigerGraph" or "LOAD SUCCESSFUL for loading jobid" not in resp:
raise TigerGraphException(resp)

def clean_res(resp: list) -> str:
Expand Down

0 comments on commit 1c2ab80

Please sign in to comment.