Commit 7e29c2a
Bugfix: clear exception state in open_func and create_func
This is a small bugfix that clears the exception state after trying
(and failing) to read keep_cache and direct_io. Not doing this will
make the exception appear in a random other place.
This can easily happen in code that uses PyErr_Occured(), the code
being checked might have not triggered an exception, but
PyErr_Occured() will still find the getattr() exception that was
not handled here.1 parent 602557a commit 7e29c2a
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| 532 | + | |
| 533 | + | |
532 | 534 | | |
533 | 535 | | |
534 | 536 | | |
535 | 537 | | |
536 | 538 | | |
| 539 | + | |
| 540 | + | |
537 | 541 | | |
538 | 542 | | |
539 | 543 | | |
| |||
573 | 577 | | |
574 | 578 | | |
575 | 579 | | |
| 580 | + | |
| 581 | + | |
576 | 582 | | |
577 | 583 | | |
578 | 584 | | |
579 | 585 | | |
580 | 586 | | |
| 587 | + | |
| 588 | + | |
581 | 589 | | |
582 | 590 | | |
583 | 591 | | |
| |||
0 commit comments