We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01b610f commit 2f9bfa7Copy full SHA for 2f9bfa7
src/crappy/camera/gphoto2_camera.py
@@ -84,13 +84,13 @@ def open(self,
84
85
if self._camera is None:
86
if model is not None and port is not None:
87
- raise IOError(
88
- f"Camera '{model}' on port '{port}' not found."
89
- )
+ raise IOError(f"Could not find camera {model} on port {port} !")
90
elif model is not None and port is None:
91
- raise IOError(f"Camera '{model}' not found.")
92
- elif model is None and port is None:
93
- raise IOError(f"No camera found found.")
+ raise IOError(f"Could not find camera {model} !")
+ elif model is None and port is not None:
+ raise IOError(f"Could not find a camera on port {port} !")
+ else:
+ raise IOError(f"No compatible camera found !")
94
95
self.set_all(**kwargs)
96
0 commit comments