Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def send_get(url):
- try:
- client = CalamariClient(api_url=CALAMARI_API_URL, username=CALAMARI_API_USER, password=CALAMARI_API_PWD)
- response = client.get(url)
- except ConnectionError as ce:
- print ce.message
- print ce.filename
- response = create_error_422(url, ce.message.args[0])
- logging.warning(ce.message)
- except Exception as e:
- response = create_error_422(url, e.message)
- logging.warning(e.message)
- return response
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement