diff options
| author | Scott Bahling <sbahling@suse.com> | 2020-02-13 11:43:10 +0100 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.com> | 2020-02-13 11:43:10 +0100 |
| commit | 650c9e5853ea57b985df1e9d97288a7d879a2e4f (patch) | |
| tree | 56d4d974fc16c6d115c820de474e7218cb50dee0 /obsapi/httpapi.py | |
| parent | 7806de5f05bbc153b8405f1e693e1ae202e2a54c (diff) | |
| download | obsapi-650c9e5853ea57b985df1e9d97288a7d879a2e4f.tar.gz obsapi-650c9e5853ea57b985df1e9d97288a7d879a2e4f.tar.xz obsapi-650c9e5853ea57b985df1e9d97288a7d879a2e4f.zip | |
Implement general exception handling
We trap the low level OBS api calls via a callback and
check for success. If error returned, parse the OBS error response
and raise an exception.
Diffstat (limited to 'obsapi/httpapi.py')
| -rw-r--r-- | obsapi/httpapi.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/obsapi/httpapi.py b/obsapi/httpapi.py index b73b547..ac695b5 100644 --- a/obsapi/httpapi.py +++ b/obsapi/httpapi.py @@ -161,8 +161,6 @@ class ObsHttpApi(object): api = self.__api(*args) stream = params.get('stream', False) r = self.__api_get(api, params=params) - if not self.success: - return None if binary_get: if stream: |
