Skip to content

Commit

Permalink
update base GQLWrapper class
Browse files Browse the repository at this point in the history
  • Loading branch information
stg-annon committed Jan 4, 2025
1 parent db94262 commit c218380
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def _handle_GQL_response(self, response):
code = "DATABASE_LOCKED"
database_locked = 1
path = error.get("path", "")
fmt_error = f"{code}: {message} {path}".strip()
fmt_error = f"{code}:{path} {message}".strip()
self.log.error(fmt_error)

if response.status_code == 401:
Expand All @@ -270,9 +270,9 @@ def _handle_GQL_response(self, response):
self.log.error(error_msg)
raise Exception(error_msg)

def callGQL(self, query, variables={}):
return self._GQL(query, variables)
def _callGraphQL(self, query, variables={}):
def call_GQL(self, query, variables={}, callback=None):
if callback:
raise Exception("callback not immplemented")
return self._GQL(query, variables)

class StashVersion:
Expand Down

0 comments on commit c218380

Please sign in to comment.