Last active
January 4, 2020 00:28
-
-
Save vthub/d6a2110f48b05ed62ee49a744f343932 to your computer and use it in GitHub Desktop.
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, sys | |
print("Calling httpbin") | |
r = requests.get('https://httpbin.org/get') | |
if r.status_code != 200: | |
print("Failed") | |
sys.exit(1) | |
print("Successfully completed") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment