summaryrefslogtreecommitdiffstats
path: root/ipatests/test_ipapython/test_ipautil.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-03-11 19:51:07 +0100
committerMartin Basti <mbasti@redhat.com>2016-03-22 10:20:51 +0100
commit491447cc5ab8c5eff2be57d609201cefb79f7053 (patch)
tree401ff990eddb00a6fed63ed9dd5c0e4b546799c4 /ipatests/test_ipapython/test_ipautil.py
parentaa749957360b85fecaed2f9f8dc286f560b89e0b (diff)
downloadfreeipa-491447cc5ab8c5eff2be57d609201cefb79f7053.tar.gz
freeipa-491447cc5ab8c5eff2be57d609201cefb79f7053.tar.xz
freeipa-491447cc5ab8c5eff2be57d609201cefb79f7053.zip
pylint: remove bare except
Bare except should not be used. Reviewed-By: Petr Spacek <pspacek@redhat.com> Reviewed-By: Lukas Slebodnik <lslebodn@redhat.com>
Diffstat (limited to 'ipatests/test_ipapython/test_ipautil.py')
-rw-r--r--ipatests/test_ipapython/test_ipautil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipatests/test_ipapython/test_ipautil.py b/ipatests/test_ipapython/test_ipautil.py
index 52f87c7f6..dee82d627 100644
--- a/ipatests/test_ipapython/test_ipautil.py
+++ b/ipatests/test_ipapython/test_ipautil.py
@@ -38,7 +38,7 @@ def make_ipaddress_checker(addr, words=None, prefixlen=None):
try:
ip = ipautil.CheckedIPAddress(addr, match_local=False)
assert ip.words == words and ip.prefixlen == prefixlen
- except:
+ except Exception:
assert words is None and prefixlen is None
check_ipaddress.description = "Test IP address parsing and verification (%s)" % addr
return check_ipaddress