From 233af372807a98e740d6e4d5b4fd73483d6529a3 Mon Sep 17 00:00:00 2001 From: Per A Brodtkorb Date: Wed, 7 Sep 2016 10:45:11 +0200 Subject: [PATCH] Added check for TypeError --- wafo/spectrum/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wafo/spectrum/core.py b/wafo/spectrum/core.py index 67e6e48..fabaefb 100644 --- a/wafo/spectrum/core.py +++ b/wafo/spectrum/core.py @@ -56,7 +56,7 @@ def _set_seed(iseed): if iseed is not None: try: random.set_state(iseed) - except KeyError: + except (KeyError, TypeError): random.seed(iseed)