Commit 1322fc8
committed
Raise exception for instance_or_null
When the wrong data type is passed to the method, like a list or string,
an exception is returned. Instead, we should be raising the exception.
I added a single unit test, which asserts that an error is raised.
Fixes sigmavirus24#628 and
sigmavirus24#627.1 parent 008cb11 commit 1322fc8
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| |||
0 commit comments