We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7730eb commit bd986c8Copy full SHA for bd986c8
docs/operate/get-started/other-hardware/hello-world-module.md
@@ -331,7 +331,7 @@ Add the following code to the `validate()` function to throw an error if `image_
331
```python {class="line-numbers linkable-line-numbers" data-start="46"}
332
# Check that a path to get an image was configured
333
fields = config.attributes.fields
334
-if not "image_path" in fields:
+if "image_path" not in fields:
335
raise Exception("Missing image_path attribute.")
336
elif not fields["image_path"].HasField("string_value"):
337
raise Exception("image_path must be a string.")
0 commit comments