Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when there is no user link on a Q&A #18

Open
sduenas opened this issue Jan 29, 2015 · 3 comments
Open

Error when there is no user link on a Q&A #18

sduenas opened this issue Jan 29, 2015 · 3 comments

Comments

@sduenas
Copy link
Member

sduenas commented Jan 29, 2015

This Q&A does not have any author, so it makes Sibyl to raise an exception.

Analyzing: https://ask.openstack.org/en/question/57932/why-do-i-need-to-provide-contact-information-when-signing-the-cla/
    * Question not found in db
2015-01-29 16:47:56,480 Starting new HTTPS connection (1): ask.openstack.org
/home/sduenas/.local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:734: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
  InsecureRequestWarning)
/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py:324: Warning: Out of range value for column 'added_at' at row 1
  cursor.execute(statement, parameters)
Traceback (most recent call last):
  File "/home/sduenas/.local/bin/sibyl.py", line 182, in <module>
    askbot_parser(session, opts.url)
  File "/home/sduenas/.local/bin/sibyl.py", line 128, in askbot_parser
    answers = askbot.answers(dbquestion)
  File "/home/sduenas/.local/lib/python2.7/site-packages/pysibyl/askbot.py", line 224, in answers
    return self.questionHTML.getAnswers(dbquestion.question_identifier) 
  File "/home/sduenas/.local/lib/python2.7/site-packages/pysibyl/askbot.py", line 342, in getAnswers
    user_links = user[0].findAll('a')
IndexError: list index out of range
@acs
Copy link
Member

acs commented Jan 29, 2015

Yes, but the parsing process so continue with the rest. No?

@sduenas
Copy link
Member Author

sduenas commented Jan 29, 2015

What do you mean? When this exception is raised the parsing process does not continue. Sibyl crashes.

@acs
Copy link
Member

acs commented Jan 29, 2015

I propose that the exception is caught, reported but that the parsing process continue and sibyl should not crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants