From 61fbd8933a4da011bc0ad3148df4b2786d240599 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 2 Aug 2016 22:37:00 +0200 Subject: Pylint: remove bare excepts Bare excepts should not be used, because they may hide system exceptions such as KeyboardInterupts or SystemExits. --- dns/name.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dns/name.py') diff --git a/dns/name.py b/dns/name.py index ef812cf..26a3305 100644 --- a/dns/name.py +++ b/dns/name.py @@ -34,7 +34,7 @@ from ._compat import long, binary_type, text_type, unichr try: maxint = sys.maxint -except: +except AttributeError: maxint = (1 << (8 * struct.calcsize("P"))) // 2 - 1 NAMERELN_NONE = 0 -- cgit v1.2.1