From 08dcae109ef6d8779069404da66fe205415ad7c7 Mon Sep 17 00:00:00 2001 From: Chengbiao Jin Date: Tue, 4 Mar 2025 16:14:04 -0800 Subject: [PATCH] fix key change for 4.2.0 --- pyTigerGraph/common/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyTigerGraph/common/base.py b/pyTigerGraph/common/base.py index d02fcb96..1d17fa18 100644 --- a/pyTigerGraph/common/base.py +++ b/pyTigerGraph/common/base.py @@ -348,6 +348,9 @@ def _parse_req(self, res, jsonResponse, strictJson, skipCheck, resKey): return res + if resKey not in res: + resKey = resKey.replace("_", "") + logger.info("Removed _ from resKey") if logger.level == logging.DEBUG: logger.debug("return: " + str(res[resKey])) logger.info("exit: _req (resKey)")