try:
r = requests.get(url, params={'s': thing})
except requests.ConnectionError, e:
print e #should I also sys.exit(1) after this?
Is this correct? Is there a better way to structure this? Will this cover all my bases?
try:
r = requests.get(url, params={'s': thing})
except requests.ConnectionError, e:
print e #should I also sys.exit(1) after this?
Is this correct? Is there a better way to structure this? Will this cover all my bases?