Skip to content

Fixed name errors in camera_picamera2.py module#78

Merged
BalajiLeninrajan merged 5 commits intomainfrom
fix-name-errors-picamera2
Feb 18, 2025
Merged

Fixed name errors in camera_picamera2.py module#78
BalajiLeninrajan merged 5 commits intomainfrom
fix-name-errors-picamera2

Conversation

@BalajiLeninrajan
Copy link
Contributor

No description provided.

Copy link
Member

@maxlou05 maxlou05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed

Comment on lines 101 to 102
if picamera2 is None:
return False, None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did this never work? Like it still failed to pass test with this in?

Copy link
Contributor Author

@BalajiLeninrajan BalajiLeninrajan Feb 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that didn't work. What's probably happening is that all the methods of the class are setup on Python reads the types of the methods on instantiation so this doesn't catch the NoneType error

Copy link
Member

@maxlou05 maxlou05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@BalajiLeninrajan BalajiLeninrajan merged commit 1c517e8 into main Feb 18, 2025
1 check passed
@BalajiLeninrajan BalajiLeninrajan deleted the fix-name-errors-picamera2 branch February 18, 2025 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants