You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
calling the get_focus_mode() method with Birddog X1 camera results in a KeyError exception
Diagnosis:
The Birddog X1 does not currently implement the GETFOCUSMODE (0x04 0x38) INQUIRY. Instead it returns a generic reply. Doing a dict lookup based on the last byte of the reply (which seems to be an ascii 'A') causes a KeyError.
Possible fix:
Adding a try/except around the dict index makes the code more robust and avoids the problem
Problem:
calling the get_focus_mode() method with Birddog X1 camera results in a KeyError exception
Diagnosis:
The Birddog X1 does not currently implement the GETFOCUSMODE (0x04 0x38) INQUIRY. Instead it returns a generic reply. Doing a dict lookup based on the last byte of the reply (which seems to be an ascii 'A') causes a KeyError.
Possible fix:
Adding a try/except around the dict index makes the code more robust and avoids the problem
The text was updated successfully, but these errors were encountered: