update shared dependencies
This commit is contained in:
parent
d4d3d82be3
commit
736cd598a8
521 changed files with 45146 additions and 22574 deletions
|
|
@ -56,7 +56,7 @@ def validate(number):
|
|||
"""Checks whether the check digit is valid."""
|
||||
try:
|
||||
valid = checksum(number) == 1
|
||||
except:
|
||||
except Exception:
|
||||
raise InvalidFormat()
|
||||
if not valid:
|
||||
raise InvalidChecksum()
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ def validate(number):
|
|||
"""Checks whether the check digit is valid."""
|
||||
try:
|
||||
valid = checksum(number) == 1
|
||||
except:
|
||||
except Exception:
|
||||
raise InvalidFormat()
|
||||
if not valid:
|
||||
raise InvalidChecksum()
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ def validate(number, alphabet='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ*'):
|
|||
"""Checks whether the check digit is valid."""
|
||||
try:
|
||||
valid = checksum(number, alphabet) == 1
|
||||
except:
|
||||
except Exception:
|
||||
raise InvalidFormat()
|
||||
if not valid:
|
||||
raise InvalidChecksum()
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ def validate(number, alphabet='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'):
|
|||
"""Checks whether the check digit is valid."""
|
||||
try:
|
||||
valid = checksum(number, alphabet) == 1
|
||||
except:
|
||||
except Exception:
|
||||
raise InvalidFormat()
|
||||
if not valid:
|
||||
raise InvalidChecksum()
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ def validate(number):
|
|||
"""Checks whether the check digit is valid."""
|
||||
try:
|
||||
valid = checksum(number) == 1
|
||||
except:
|
||||
except Exception:
|
||||
raise InvalidFormat()
|
||||
if not valid:
|
||||
raise InvalidChecksum()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue