diff options
Diffstat (limited to 'stdnum/luhn.py')
-rw-r--r-- | stdnum/luhn.py | 4 |
1 files changed, 2 insertions, 2 deletions
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() |