Correct way to try/except using Python requests module?

try:
    r = requests.get(url, params={'s': thing})
except requests.ConnectionError, e:
    print(e)

Is this correct? Is there a better way to structure this? Will this cover all my bases?

← Назад к списку