-
Notifications
You must be signed in to change notification settings - Fork 1
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
restructure and add new demos #24
Conversation
public_ip = get_public_ip() | ||
|
||
if "Unable to get public IP" in public_ip: | ||
return f"<p>Error: {public_ip}</p>" |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
Stack trace information
|
||
location = get_location(public_ip) | ||
if 'error' in location: | ||
return f"<p>Error fetching location data for IP {public_ip}: {location['error']}</p>" |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
Stack trace information
Stack trace information
Stack trace information
</body> | ||
</html> | ||
""" | ||
return render_template_string(weather_html) |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
No description provided.