10000 Fix bug in damm.is_valid() function · waldemar-becker/python-stdnum@6b588d1 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Mar 4, 2019. It is now read-only.

Commit 6b588d1

Browse files
committed
Fix bug in damm.is_valid() function
1 parent 35542c1 commit 6b588d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdnum/damm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# damm.py - functions for performing the Damm checksum algorithm
22
#
3-
# Copyright (C) 2016 Arthur de Jong
3+
# Copyright (C) 2016-2017 Arthur de Jong
44
#
55
# This library is free software; you can redistribute it and/or
66
# modify it under the terms of the GNU Lesser General Public
@@ -82,7 +82,7 @@ def validate(number, table=None):
8282
def is_valid(number, table=None):
8383
"""Checks to see if the number provided passes the Damm algorithm."""
8484
try:
85-
return bool(validate(number), table=table)
85+
return bool(validate(number, table=table))
8686
except ValidationError:
8787
return False
8888

0 commit comments

Comments
 (0)
0