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

Cite command error handling #77

Merged
merged 1 commit into from
Oct 24, 2018
Merged

Conversation

dhimmel
Copy link
Member

@dhimmel dhimmel commented Oct 22, 2018

Do not exit program when a citation_to_citeproc lookup fails. Instead set a nonzero exit code, but proceed with passing citaitons. Error messages are logged, full stacktrace is logged at INFO level.

Do not exit program when a citation_to_citeproc lookup fails.
Instead set a nonzero exit code, but proceed with passing citaitons.
Error messages are logged, full stacktrace is logged at INFO level.
@dhimmel
Copy link
Member Author

dhimmel commented Oct 23, 2018

@slochower I requested a review from you, since I think you know the citation infrastructure somewhat (?) and I was hoping to take some of the reviewer burden off of @agitter.

@slochower
Copy link
Collaborator

Sure! Will take a look tomorrow.

@slochower
Copy link
Collaborator

Hmm... I only see one line changed to a try/except. Is that it? It looks fine; the docs say that sys.exc_info() will return the exception information, which looks good.

@dhimmel
Copy link
Member Author

dhimmel commented Oct 24, 2018

Yeah it is a small change, but we try to have every PR get reviewed unless it's extremely urgent.

@dhimmel dhimmel merged commit a008126 into manubot:master Oct 24, 2018
@dhimmel dhimmel deleted the cite-command-errors branch October 24, 2018 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants