I am using BeautifulSoup and parsing some HTMLs.
I\'m getting a certain data from each HTML (using for loop) and adding that data to a cert
Taking reference of ThiefMaster♦ sometimes we get an error with value given as '\n' or null and perform for that required to handle ValueError:
Handling the exception is the way to go
try: gotdata = dlist[1] except (IndexError, ValueError): gotdata = 'null'