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

Added IP info to sys_info.py #165

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

brenordv
Copy link

@brenordv brenordv commented Dec 3, 2023

Added IP info to the sys_info.py example. Also included a caching (default: 4 hours) since IP address is not something that changes frequently.

If something goes wrong, the line will be blank.

The rationale for this change is that the IP being displayed is super useful information to have at hand and goes well with all the other stats printed in this example.

Added IP info to the sys_info.py example. Also included a caching (default: 4 hours) since IP address is not something that changes frequently.
Changed the strategy for failure cases. Now returning an empty string and (hopefully) ensuring nothing else will go wrong (like failing to display None).
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.

1 participant