I have some code like:
if self.tagname and self.tagname2 in list1:
try:
question = soup.find("div", "post-text")
title = soup.find("a", "question-hyperlink")
self.list2.append(str(title)+str(question)+url)
current += 1
except AttributeError:
pass
logging.info("%s questions passed, %s questions \
collected" % (count, current))
count += 1
return self.list2
My IDE gave me some pep8 warnings, like so:
trailing whitespace 37:try
trailing whitespace 43:pass
What does this mean, and how do I fix it?
settings.json
file to automatically trim all the white spaces whenever you save a file. ``` "files.trimTrailingWhitespace": true ``` – Fumed