bindings: python: return None if line can't be found by name
authorBartosz Golaszewski <bartekgola@gmail.com>
Sat, 12 May 2018 12:48:58 +0000 (14:48 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Mon, 14 May 2018 09:49:13 +0000 (11:49 +0200)
commitd331321f010b07ec6646c3effa490655ecab624c
tree28237469dae22bdf77db00589b75f0401919b089
parentf36a27f1cc25167c1f03fea8f6f431e10375c043
bindings: python: return None if line can't be found by name

For both find_line() variants (Chip's method and global function)
return None if the internal call to the C find_line function fails
with ENOENT. This is not an error so don't raise an exception.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
bindings/python/gpiodmodule.c