Commit 9c24c89
committed
Define self._handle up-front to prevent warning in __del__
Since initialization failures happen (usually) in `get_handle`, the
instance would not have a proper `self._handle` defined and fail on
`__del__` which checks for this field's value.1 parent cba6ebf commit 9c24c89
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
0 commit comments