Commit 478b68b
Don't raise unless exception occurs.
This commit adds a check before `raise last_error`.
`last_error` could still be `None`, in which case `raise None` itself throws an exception, which is probably not what you want.
Co-authored-by: Benn Snyder <benn.snyder@gmail.com>
Signed-off-by: Benn Snyder <benn.snyder@gmail.com>
Reviewed-by: Benn Snyder <benn.snyder@gmail.com>1 parent 8f5ba39 commit 478b68b
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
537 | | - | |
| 537 | + | |
| 538 | + | |
538 | 539 | | |
539 | 540 | | |
540 | 541 | | |
| |||
0 commit comments