google / google/bumble

Exception Handling - USB device disconnects.

Open
#204 2 comments 0 reactions 1 assignee Claimed by @barbibulle View on GitHub
Dominant language
Python
Stars
555
Forks
138
Avg merge
3d 15h
Merged PRs (30d)
9

Description

Whats the best way to catch exceptions like these from the custom script.

```
!!! transfer not completed: status=4
!!! transfer not completed: status=4
!!! transfer not completed: status=5
!!! transfer not completed: status=5
CAUGHT
Exception ignored on calling ctypes callback function: >
Traceback (most recent call last):
File "C:\Users\thisi\AppData\Roaming\Python\Python39\site-packages\usb1\__init__.py", line 327, in __callbackWrapper
callback(self)
File "D:\Anaconda3\lib\site-packages\bumble\transport\usb.py", line 284, in on_packet_received
exit()
File "D:\Anaconda3\lib\_sitebuiltins.py", line 26, in __call__
raise SystemExit(code)
SystemExit: None
!!! transfer not completed: status=5
CAUGHT
Exception ignored on calling ctypes callback function: >
Traceback (most recent call last):
File "C:\Users\thisi\AppData\Roaming\Python\Python39\site-packages\usb1\__init__.py", line 327, in __callbackWrapper
callback(self)
File "D:\Anaconda3\lib\site-packages\bumble\transport\usb.py", line 284, in on_packet_received
exit()
File "D:\Anaconda3\lib\_sitebuiltins.py", line 26, in __call__
raise SystemExit(code)
SystemExit: None
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.