[ENH] Replace asserts with proper if else Exception handling
#3102
| Job | Run time |
|---|---|
| 1m 25s | |
| 1m 25s |
asserts with proper if else Exception handling
#3102
| Job | Run time |
|---|---|
| 1m 25s | |
| 1m 25s |