From 650c9e5853ea57b985df1e9d97288a7d879a2e4f Mon Sep 17 00:00:00 2001 From: Scott Bahling Date: Thu, 13 Feb 2020 11:43:10 +0100 Subject: 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. --- obsapi/httpapi.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'obsapi/httpapi.py') 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: -- cgit v1.2.3