Commit 8ca266c
SparkLabScout
fix: initialize res to None to prevent UnboundLocalError
Fixes issue #81 - UnboundLocalError when no converter accepts the file.
The variable res was only set inside the 'if _accepts:' block, but was
checked later outside of it. When no converter accepts the file,
res would be undefined, causing UnboundLocalError.1 parent 0b27f28 commit 8ca266c
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
| 593 | + | |
593 | 594 | | |
594 | 595 | | |
595 | 596 | | |
| |||
0 commit comments