Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom exception for connection errors #40

Open
kaisero opened this issue Feb 1, 2021 · 0 comments
Open

Add custom exception for connection errors #40

kaisero opened this issue Feb 1, 2021 · 0 comments

Comments

@kaisero
Copy link
Owner

kaisero commented Feb 1, 2021

Currently if Connection is refused by FMC (e.g. not reachable) ConnectionError is thrown.

ConnectionError: HTTPSConnectionPool(host='fmc.example.com', port=443): Max 
retries exceeded with url: /api/fmc_platform/v1/auth/generatetoken (Caused by 
NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10dc3f490>: 
Failed to establish a new connection: [Errno 61] Connection refused'))

This should be replaced with a more user friendly custom exception

@kaisero kaisero self-assigned this Feb 1, 2021
@kaisero kaisero removed their assignment Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant