[ENH] Replace asserts with proper if else Exception handling
#2564
| Job | Run time |
|---|---|
| 0s |
asserts with proper if else Exception handling
#2564
| Job | Run time |
|---|---|
| 0s |