diff options
| author | Scott Bahling <sbahling@suse.de> | 2018-07-18 17:22:00 +0200 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.de> | 2018-07-18 17:22:00 +0200 |
| commit | 19264fdace6eed4fe600948741d21a4b9f947423 (patch) | |
| tree | c150ad65f577468358a0c5a482072b94023529d9 /obsapi/httpapi.py | |
| parent | da1e9fd7c1236b17590946aff5a7ae638d50c6df (diff) | |
| download | obsapi-19264fdace6eed4fe600948741d21a4b9f947423.tar.gz obsapi-19264fdace6eed4fe600948741d21a4b9f947423.tar.xz obsapi-19264fdace6eed4fe600948741d21a4b9f947423.zip | |
Make flake8 happy
Add dummy logger for now
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) |
