This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
default_ip = '192.168.127.1' | |
def do_get(url): | |
try: | |
resp = requests.get(url) | |
except Exception as e: | |
raise Exception("Could not reach url: %s" % url) from e |