Merge "Fix the BeautifulSoup warning"

This commit is contained in:
Jenkins 2017-07-11 10:50:57 +00:00 committed by Gerrit Code Review
commit e3074ccc71
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ except ImportError:
def parse_api_error(api_error_html):
error_html = bs4.BeautifulSoup(api_error_html)
error_html = bs4.BeautifulSoup(api_error_html, "html.parser")
body = error_html.find('body')
if (not body or not body.text):
return None