From c2183802db11260ed0697d433571b9eed18a0368 Mon Sep 17 00:00:00 2001 From: stg-annon <14135675+stg-annon@users.noreply.github.com> Date: Sat, 4 Jan 2025 14:26:47 -0500 Subject: [PATCH] update base GQLWrapper class --- classes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classes.py b/classes.py index 7f7bbf8..e1cb81b 100644 --- a/classes.py +++ b/classes.py @@ -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: @@ -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: