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)