From 2046f51043c853a0c9030a30f0264d29c0a8029e Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 10 Jan 2021 14:10:29 +0100 Subject: Fix flake8 blind except Exception error --- stdnum/luhn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdnum/luhn.py') diff --git a/stdnum/luhn.py b/stdnum/luhn.py index afa4829..e41ce78 100644 --- a/stdnum/luhn.py +++ b/stdnum/luhn.py @@ -1,6 +1,6 @@ # luhn.py - functions for performing the Luhn and Luhn mod N algorithms # -# Copyright (C) 2010, 2011, 2012, 2013 Arthur de Jong +# Copyright (C) 2010-2021 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -64,7 +64,7 @@ def validate(number, alphabet='0123456789'): raise InvalidFormat() try: valid = checksum(number, alphabet) == 0 - except Exception: + except Exception: # noqa: B902 raise InvalidFormat() if not valid: raise InvalidChecksum() -- cgit v1.2.3