update shared dependencies

This commit is contained in:
j 2016-02-23 11:36:55 +05:30
commit 736cd598a8
521 changed files with 45146 additions and 22574 deletions

View file

@ -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()

View file

@ -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()

View file

@ -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()

View file

@ -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()

View file

@ -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()