Skip to content
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

Logs message instead of error if no versions exist for solc-select versions #154

Merged
merged 2 commits into from
Feb 14, 2023

Conversation

damilolaedwards
Copy link
Contributor

This PR fixes issue #152
During the execution of solc-select versions a conditional statement has now been added to preview if any solc-select versions have been installed prior before proceeding, if the check fails, the code block responsible for looking up and printing installed versions is skipped and an informational message is logged.

print(f"{version} (current, set by {source})")
else:
print(version)
if installed_versions():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you store the result and not call installed_versions twice

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed! thanks

@0xicingdeath 0xicingdeath merged commit ec04c67 into dev Feb 14, 2023
@0xicingdeath 0xicingdeath deleted the no-versions-error-fix branch February 14, 2023 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants