diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2017-04-13 20:53:04 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2017-04-13 20:53:32 +0200 |
commit | 6b588d1c39ff75f853b97af37aa0724745aff65f (patch) | |
tree | ea1db9ea02641fc709d63f6e385344a7a8feb6b3 | |
parent | 35542c1e718572970f9120886482b2824b7db266 (diff) |
Fix bug in damm.is_valid() function
-rw-r--r-- | stdnum/damm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdnum/damm.py b/stdnum/damm.py index dc93151..cf8a2cd 100644 --- a/stdnum/damm.py +++ b/stdnum/damm.py @@ -1,6 +1,6 @@ # damm.py - functions for performing the Damm checksum algorithm # -# Copyright (C) 2016 Arthur de Jong +# Copyright (C) 2016-2017 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 @@ -82,7 +82,7 @@ def validate(number, table=None): def is_valid(number, table=None): """Checks to see if the number provided passes the Damm algorithm.""" try: - return bool(validate(number), table=table) + return bool(validate(number, table=table)) except ValidationError: return False |