Commit 3bda54a
committed
conv: Use NotImplementedError when no backends are available
to_bgr888() raised ValueError when no requested backend was installed
and NotImplementedError when an installed backend could not handle the
format. Both mean "we can't convert this", so collapse them into one
exception type. The tests that probe backends or skip on missing
backends can now catch a single exception type instead of matching on
the ValueError message string.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>1 parent bb9bcdf commit 3bda54a
2 files changed
Lines changed: 7 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
| 233 | + | |
| 234 | + | |
237 | 235 | | |
238 | 236 | | |
239 | 237 | | |
| |||
283 | 281 | | |
284 | 282 | | |
285 | 283 | | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
| 284 | + | |
| 285 | + | |
290 | 286 | | |
291 | 287 | | |
292 | 288 | | |
| |||
345 | 341 | | |
346 | 342 | | |
347 | 343 | | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
| 344 | + | |
| 345 | + | |
352 | 346 | | |
353 | 347 | | |
354 | 348 | | |
| |||
0 commit comments