Skip to content

Fix NameError: name 'ip' is not defined#15

Open
gandrunx wants to merge 1 commit intogwen001:mainfrom
gandrunx:fix/name-ip-not-defined
Open

Fix NameError: name 'ip' is not defined#15
gandrunx wants to merge 1 commit intogwen001:mainfrom
gandrunx:fix/name-ip-not-defined

Conversation

@gandrunx
Copy link

@gandrunx gandrunx commented Aug 8, 2024

Summary

This pull request addresses a NameError encountered when the ip variable is referenced before it is defined.

Details

  • Properly defined the ip variable to ensure it is initialized before use.
  • Updated the relevant code sections to avoid the NameError.
  • Add load_dotenv()
  • Add .env.example
  • Add .gitignore for python project
  • Fix error message (InsecureRequestWarning from urllib3)
  • Fix error message banner

Testing

  • Tested the changes locally to ensure the error no longer occurs.
  • Verified that the functionality involving the ip variable works as expected after the fix.

Related Issues

Additional Notes

  • Please review the changes and let me know if any further adjustments are needed.
  • I am open to feedback and ready to make any necessary modifications.

Thank you for considering this fix. Looking forward to your feedback.

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