79687028

Date: 2025-07-02 07:48:38
Score: 0.5
Natty:
Report link

for x in myList is looping over elements which are of list type, which does not have lstrip method.

You will have to adapt like this : myList = [[x[0].lstrip()] for x in myList if len(x) > 0]

In my example, It will only lstrip if len of list is bigger than 0. In case list is empty, it will be ignored

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: RCDevs Security