-
Notifications
You must be signed in to change notification settings - Fork 2k
fixed errors when renaming without an active env #11915
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
Conversation
|
We require contributors to sign our Contributor License Agreement and we don't have one on file for @FelisNivalis. In order for us to review and merge your code, please e-sign the Contributor License Agreement PDF. We then need to manually verify your signature. We will ping the bot to refresh the PR status when we have confirmed your signature. |
|
@conda-bot check |
`active_prefix` returns empty string instead of `None` when no active env
…o detect cases where there isn't an active env
|
Hi @FelisNivalis , thank you for your contribution! We really appreciate you taking the time to submit this suggested fix. The Additionally, changing the The more ideal path forward may be to alter the I've pushed a new commit to this pull request; if you agree to this change, we'll go forward with this PR and keep your name attached to it as a contributor since you so kindly found this bug and submitted a fix. Please let us know your thoughts! |
f4ce38c to
18ce5e1
Compare
active_prefixreturns empty string instead ofNonewhen no active envDescription
Got errors when trying to rename an environment with no active environments
So basically when no active env,
context.active_prefixreturned aNone, which further causedos.fspathto raise an error.I just fixed it in a simplest way so that
context.active_prefixalways returns a string, but if, for example,Nonemeans something special foractive_prefix, we can try to figure out another way.Checklist - did you ...
newsdirectory (using the template) for the next release's release notes?Add / update necessary tests?Add / update outdated documentation?