pylint: remove bare except

Bare except should not be used.

Reviewed-By: Petr Spacek <pspacek@redhat.com>
Reviewed-By: Lukas Slebodnik <lslebodn@redhat.com>
This commit is contained in:
Martin Basti
2016-03-11 19:51:07 +01:00
parent aa74995736
commit 491447cc5a
25 changed files with 51 additions and 57 deletions

View File

@@ -1978,7 +1978,7 @@ class RestClient(Backend):
def _parse_dogtag_error(body):
try:
return pki.PKIException.from_json(json.loads(body))
except:
except Exception:
return None
def __init__(self, api):