diff options
| author | Anthony Vo <anthonyhvo12@gmail.com> | 2021-04-06 02:03:04 +0700 |
|---|---|---|
| committer | Anthony Vo <anthonyhvo12@gmail.com> | 2021-04-06 02:03:04 +0700 |
| commit | 876bc5d36e3993391398ce474b52179868505f92 (patch) | |
| tree | df297094310d47a0c965c6162ca1fc6ef445088f /numpy/random | |
| parent | e4856c1197274a4b57b6ddc0e8ea7d7e4854986d (diff) | |
| download | numpy-876bc5d36e3993391398ce474b52179868505f92.tar.gz | |
change to suitable raise from and add line breaks
Diffstat (limited to 'numpy/random')
| -rw-r--r-- | numpy/random/_common.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/random/_common.pyx b/numpy/random/_common.pyx index 6e6e5b77e..85cd6ba9d 100644 --- a/numpy/random/_common.pyx +++ b/numpy/random/_common.pyx @@ -122,7 +122,7 @@ cdef object prepare_cffi(bitgen_t *bitgen): try: import cffi except ImportError: - raise ImportError('cffi cannot be imported.') from None + raise ImportError('cffi cannot be imported.') from e ffi = cffi.FFI() _cffi = interface(<uintptr_t>bitgen.state, |
