What does this do? Is `camera.config` a property method? How do we know if the camera is still connected from this? An explanatory comment would not hurt :-)

Also, catching the specific exception would be better/more idiomatic.