mirror of
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
synced 2026-10-28 13:55:08 +03:00
Currently we're not checking if the object returned from gpiod.fine_line() is None which results in an attribute error being raised when we try to call line methods on a non-line object. Add an if and bail-out with an error code if the line with given name was not found. Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>