Commit edf432a
authored
Add additional typecheck to curie validation (#542)
Due to the lack of type safety, i can pass a non string to the
`_is_curie` method, which causes the method to fail hard when its trying
to do regex matching.
Here, i add an additional safety net around the matching processing,
making sure the value is not None, and is indeed a string (and not a
number or some other kind of non-string).1 parent fcb79b7 commit edf432a
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1107 | 1107 | | |
1108 | 1108 | | |
1109 | 1109 | | |
1110 | | - | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
1111 | 1114 | | |
1112 | 1115 | | |
1113 | 1116 | | |
1114 | 1117 | | |
1115 | | - | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
1116 | 1122 | | |
1117 | 1123 | | |
1118 | 1124 | | |
| |||
0 commit comments