Skip to content

Commit 6a3af05

Browse files
authored
Merge pull request #3579 from resilient-tech/mergify/bp/version-15-hotfix/pr-3578
fix: handle response type as list in _make_request method of StandardEWaybillAPI (backport #3578)
2 parents e3333e3 + 94b46f2 commit 6a3af05

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

india_compliance/gst_india/api_classes/nic/e_waybill.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ def setup(self, doc=None, *, company_gstin=None):
167167
def _make_request(self, *args, **kwargs):
168168
response = super()._make_request(*args, **kwargs)
169169

170+
if isinstance(response, list | tuple):
171+
return response
172+
170173
# Invalid Token
171174
if response.error_code == "238":
172175
self.auth_token = None

0 commit comments

Comments
 (0)