Commit e332430
committed
Fix guard both OptionalImportError raises with raise_on_missing_reader flag
Both raise statements in LoadImage.__init__ now use the same guarding
mechanism via the raise_on_missing_reader flag. This ensures consistent
behavior when dealing with missing readers whether they are unrecognized
names or missing optional dependencies.
Also applied code formatting fixes.
Signed-off-by: Sarah <[email protected]>1 parent dae4264 commit e332430
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
219 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
220 | 227 | | |
221 | 228 | | |
222 | 229 | | |
| |||
0 commit comments