Commit 0851833
authored
Fix null check for device status responses in CLI streaming (#169)
* Fix null check for device status responses in CLI streaming
The *_with_status() methods return None on gRPC errors, but
configure_device(), start_device(), and stop_device() were
accessing .code without checking for None first. This caused
"'NoneType' object has no attribute 'code'" errors when
device operations failed.
* bump version 2.4.11 parent 3aa87e9 commit 0851833
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
596 | 599 | | |
597 | 600 | | |
598 | 601 | | |
| |||
610 | 613 | | |
611 | 614 | | |
612 | 615 | | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
613 | 619 | | |
614 | 620 | | |
615 | 621 | | |
| |||
621 | 627 | | |
622 | 628 | | |
623 | 629 | | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
624 | 633 | | |
625 | 634 | | |
626 | 635 | | |
| |||
0 commit comments