-
Notifications
You must be signed in to change notification settings - Fork 78
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
do not print results from get_parse to stderr #153
Comments
Yes, try |
thanks for the quick response. consider making this the default? |
Hmm. That might be a good idea. Anyone else have a preference? (thinking about it) |
While on the subject, is there a way for errors not to be printed as well, while using "silent=True"? |
Yes @TsUNaMyWaVe, try catching the exception raised, probably try:
<your code>
except LookupError:
pass |
@siznax thanks! I actually found a little bit cleaner solution:
But I think adding this option as part of the tool could be a good improvement as well. By either adding it to the "silent" argument, or adding an additional argument for error printing. |
@TsUNaMyWaVe thanks for the suggestion. In the case of an error, redirecting to |
Currently
get_parse
always outputs results to stderr. Is there a way to run this function silently? This is especially annoying when crawling or running in Jupyter notebook.The text was updated successfully, but these errors were encountered: