aboutsummaryrefslogtreecommitdiff
path: root/examples/camera/set_feature_value.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/camera/set_feature_value.py')
-rw-r--r--examples/camera/set_feature_value.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/camera/set_feature_value.py b/examples/camera/set_feature_value.py
index c02f961..7086d75 100644
--- a/examples/camera/set_feature_value.py
+++ b/examples/camera/set_feature_value.py
@@ -20,6 +20,7 @@ if __name__ == '__main__':
print('"{}" was set to "{}"'.format(feature.name, feature.value))
# alternatively the feature value can be set as an object attribute
+ # note that this doesn't raise an error if the feature name doesn't exist
camera.ExposureAuto = feature.value
camera.close()