Skip to content

Conversation

jaimergp
Copy link
Contributor

@jaimergp jaimergp commented May 4, 2022

Description

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

Follow-up for #11415 - ignore ImportError too if the solver cannot be imported. Otherwise, conda info will fail (and it might be used for debugging purposes).

Actually, we might want to ignore all exceptions in this block?

@jezdez

@jaimergp jaimergp requested a review from a team as a code owner May 4, 2022 12:46
@anaconda-issue-bot anaconda-issue-bot added the cla-signed [bot] added once the contributor has signed the CLA label May 4, 2022
@jezdez
Copy link
Member

jezdez commented May 4, 2022

@jaimergp Yeah, I know it's a pretty big anti-pattern, but we should swallow exceptions to make user experience not a problem. It's not great, but better than risking stuff.

@jezdez jezdez changed the title ignore ImportError in context.user_agent Catch all exceptions in context.user_agent May 4, 2022
@jaimergp
Copy link
Contributor Author

jaimergp commented May 5, 2022

@jezdez - do we want to log the exception via log.debug or something? It could be painful to debug otherwise.

@jezdez
Copy link
Member

jezdez commented May 5, 2022

@jezdez - do we want to log the exception via log.debug or something? It could be painful to debug otherwise.

Yeah, good idea.

jaimergp and others added 2 commits May 9, 2022 22:13
@jezdez jezdez force-pushed the user-agent-ignore-importerror branch from ee56786 to 49ce013 Compare May 9, 2022 20:13
@jaimergp jaimergp closed this May 10, 2022
@jaimergp jaimergp reopened this May 10, 2022
@jaimergp
Copy link
Contributor Author

You can merge this anytime now @jezdez! Thanks!

@jezdez jezdez merged commit 69fd376 into conda:master May 10, 2022
@github-actions github-actions bot added the locked [bot] locked due to inactivity label May 12, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed [bot] added once the contributor has signed the CLA locked [bot] locked due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants