Added check for TypeError

master
Per A Brodtkorb 8 years ago
parent a63e7aeded
commit 233af37280

@ -56,7 +56,7 @@ def _set_seed(iseed):
if iseed is not None: if iseed is not None:
try: try:
random.set_state(iseed) random.set_state(iseed)
except KeyError: except (KeyError, TypeError):
random.seed(iseed) random.seed(iseed)

Loading…
Cancel
Save