-
Notifications
You must be signed in to change notification settings - Fork 553
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
CLI Fixes #322
CLI Fixes #322
Conversation
whitead
commented
Sep 8, 2024
•
edited
Loading
edited
- modify/saving settings
- asking queries
- building indexes
- search answer index
- searching other index
Finished writing the tests - they fail 👍 |
Hey @mskarlin - I cannot fix the last unit test. It seems to rely on some JSON file being present, but none are being saved to the index. I cannot understand the logic of them being saved in some cases and not in others. I'm hoping you have some knowledge of this. pytest tests/test_cli.py -k build will run the test |
…tter robust to having a Doc object, condition index type on being an "answers" index
@@ -115,7 +116,7 @@ async def query(self, query: dict) -> DocDetails | None: | |||
f"{client_query.doi if isinstance(client_query, DOIQuery) else client_query.title}" | |||
f" in {self.__class__.__name__}." | |||
) | |||
except TimeoutError: | |||
except (TimeoutError, asyncio.exceptions.TimeoutError): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment here saying after Python>=3.11 TimeoutError
replaces asyncio.exceptions.TimeoutError