diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2021-01-10 14:10:29 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2021-01-10 14:15:17 +0100 |
commit | 2046f51043c853a0c9030a30f0264d29c0a8029e (patch) | |
tree | 2c611097d0313a7de7d82069c7b1de8a6eb8d019 /stdnum/luhn.py | |
parent | cc3a970e893ebe6635982bcd49c48e6549cb5ac3 (diff) |
Fix flake8 blind except Exception error
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() |