[Solved] what is wrong incode python? [duplicate]


Just try to correct indentation like shown below:

....
try:
    subdomain = row.find_all('td')[4].text
    subdomain = subdomain.replace("*.","")
    if subdomain not in self.foundURLsList:
        self.foundURLsList.append(subdomain)
except Exception as e:
    pass
...

Current version of bs4 does not support python 2

Beautiful Soup’s support for Python 2 was discontinued on December 31,
2020: one year after the sunset date for Python 2 itself. From this
point onward, new Beautiful Soup development will exclusively target
Python 3. The final release of Beautiful Soup 4 to support Python 2
was 4.9.3.

solved what is wrong incode python? [duplicate]