-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fixing error return for missing month #5
base: master
Are you sure you want to change the base?
Conversation
v0.0.1 Initial release.
Thanks for looking into this! Handling general Exceptions can make debugging hard—for example, it will even silently suppress stuff like NameError and KeyboardInterrupt. Do you know which exception was actually being raised from that line? Is there a straightforward way to reproduce the problem so I can look a little more closely? |
Sorry ... gmail gobbled up your comment notification (ok, my incorrectly set filter did the gobbling) ... I can't repeat it right now since I've gone down a rabbit hole associated with the next error ... when/if I come back up I'll see if I can generate some simple test cases ... (I need to overwrite some of your methods anyway, since I'm using zotero's better_biblatex export, not vanilla bibtex ... and now I have unicode errors as well, so need to make it work with python3 ...) |
Meanwhile, here is a vanilla bibtex file which delivers the error (which is coming from pybtex, which is why it's hard to trap sensibly):
It's clearly the absence of a date field which causes the problem ... |
That's odd—I just ran this entry through bibble using the included template (simple.html):
and it worked fine! I used Python 3.6.4 and Pybtex 0.21. Not sure what's going wrong. |
Ah. I'm using someone else's template ... let me investigate! |
Ok, it arises from the use of |
Side note, probably unrelated: I just noticed that the |
Aha! Then maybe the right solution is to use |
(Yes, the Python3 fixes were unrelated, I added those back in first.) You did make the right decision for the template, but given the filters exist, they probably ought not to fail :-). I don't (at the moment) know how to trap the error in a more sophisticated manner than I suggested. |
Well anyway, this is the work around:
|
…ter latex garbage removal
(This second commit has the error return fix removed, but I still think it needs some sort of fix :-) ) |
Remove braces from venues
Now none of pylint, pydocstyle, or pycodestyle complain
implicit message: you're on your own if you're trying to use python 2!
Feature/python3
elbow room Co-Authored-By: Adrian Sampson <adrian@radbox.org>
Improve documentation
Should we still think about merging this? @bnlawrence it looks like there may still be a little bit of work left to do? |
I was getting this
This didn't turn out to be an AttributeError, which was my first attempt, so I gave up and just put a tran for any raw Exception in ... but I think that's probably what you want anyway ... unless you want it to log an error ...