issues
search
PagerDuty
/
pdpyras
Low-level PagerDuty REST/Events API client for Python
MIT License
129
stars
29
forks
source link
Bugfix in rdelete + doc update + response safety
#2
Closed
Deconstrained
closed
5 years ago
Deconstrained
commented
5 years ago
Method rdelete cannot return none as designed
The function
raise_on_error
used as a decorator expected the function to return requests.Response (was instead returning None)
Fixed by turning it into a plain old function so that it can still be used to avoid code duplication
Response text truncated to 99 characters in log messages about invalid response bodies, for safety's sake
Fixes to typos in documentation
Improved/added to code examples in documentation
raise_on_error
used as a decorator expected the function to return requests.Response (was instead returning None)