PagerDuty / pdpyras

Low-level PagerDuty REST/Events API client for Python
MIT License
129 stars 29 forks source link

pdpyras eats upstream exceptions #112

Closed vectro closed 1 year ago

vectro commented 1 year ago

When raising a PDCLientError, pdpyras should include the upstream exception using the raise ... from ... syntax. Otherwise important details about the error could be lost. For example, a "non-transient network error" could be a DNS, SSL, or other issue; and the details of the causing exception can help clarify which of these is the issue.