Skip to content

Commit d936aa9

Browse files
committed
ximea.py: replace equality comparison to singleton None with identity comparison
1 parent 7cfbf5f commit d936aa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

microscope/cameras/ximea.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def initialize(self):
8181
self._handle.open_device()
8282
except:
8383
raise Exception("Problem opening camera.")
84-
if self._handle == None:
84+
if self._handle is None:
8585
raise Exception("No camera opened.")
8686

8787
_logger.info('Initializing.')

0 commit comments

Comments
 (0)