diff options
Diffstat (limited to 'obsapi/httpapi.py')
| -rw-r--r-- | obsapi/httpapi.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/obsapi/httpapi.py b/obsapi/httpapi.py index 8ca49e8..cfdbfde 100644 --- a/obsapi/httpapi.py +++ b/obsapi/httpapi.py @@ -1,12 +1,13 @@ # -*- coding: utf-8 -*- # import requests +from log import logger from requests.auth import HTTPBasicAuth from null import Null try: import osc.conf as osc_conf -except: +except Exception as e: osc_conf = None DEFAULTAPIURL = 'https://api.opensuse.org' @@ -34,7 +35,8 @@ class ObsHttpApi(object): try: osc_conf.get_config() conf = osc_conf.get_apiurl_api_host_options(self.apiurl) - except: + except Exception as e: + logger.debug(e) pass user = conf.get('user', None) |
