You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When lacework environment contains zero alerts, python-sdk is not able to handle the json response correctly and throws unexpected KeyError.
Sample trace:
Traceback (most recent call last):
...
alerts = self.lacework_client.alerts.get(
File ".../lib/python3.10/site-packages/laceworksdk/api/v2/alerts.py", line 50, in get
return_data["paging"] = response_json["paging"]
KeyError: 'paging'
To Reproduce
Steps to reproduce the behavior:
Use lacework env with 0 alerts
Initialize the client and fetch alerts in following manner:
Describe the bug
When lacework environment contains zero alerts, python-sdk is not able to handle the json response correctly and throws unexpected KeyError.
Sample trace:
To Reproduce
Steps to reproduce the behavior:
Please complete the following information: