Describe the bug
The Search object in the Timesketch API client has a indices function that makes changes to the current set of indices. This list can be all Integer or all String values. However, if the list contains integers the check if index.isdigit() in the function fails, since int does not have a isdigit() method.
Expected behavior
Not crash when the indices list is all Integer values.
Solution
This can be fixed by checking if type == string before doing the check above.
Describe the bug The Search object in the Timesketch API client has a indices function that makes changes to the current set of indices. This list can be all Integer or all String values. However, if the list contains integers the check if index.isdigit() in the function fails, since
int
does not have aisdigit()
method.Expected behavior Not crash when the indices list is all Integer values.
Solution This can be fixed by checking if type == string before doing the check above.