From 19264fdace6eed4fe600948741d21a4b9f947423 Mon Sep 17 00:00:00 2001 From: Scott Bahling Date: Wed, 18 Jul 2018 17:22:00 +0200 Subject: Make flake8 happy Add dummy logger for now --- obsapi/httpapi.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'obsapi/httpapi.py') 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) -- cgit v1.2.3