Skip to content

Commit

Permalink
Validation failure is now correctly reported.
Browse files Browse the repository at this point in the history
  • Loading branch information
brownhead committed Sep 26, 2013
1 parent ee027d3 commit a9687cd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apiclient/lib/communicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,15 @@ def _send_api_command(self, request):
files = file_args,
verify = _get_verify()
)
except requests.exceptions.ConnectionError as e:
except requests.exceptions.SSLError as e:
logger.critical(
"There was a problem with communicating via SSL: %s.",
str(e),
exc_info = True
)

sys.exit(1)
except requests.exceptions.ConnectionError:
logger.critical(
"Galah did not respond at %s.",
urlparse.urljoin(config.CONFIG["host"], "/api/call"),
Expand Down

0 comments on commit a9687cd

Please sign in to comment.