board-descriptor: correct a type during refactoring

This commit is contained in:
Stefan Eichenberger 2016-07-04 19:42:40 +02:00
parent 9d406de448
commit 06371933b8
1 changed files with 3 additions and 3 deletions

View File

@ -215,8 +215,8 @@ class Descriptor:
if tlv is None:
return False
if not self.bd.is_writable:
raise IOError("This operation is not permitted on \
this descriptor (ro)")
if not self.bdraw.is_writable:
raise IOError("This operation is not permitted on "
"this descriptor (ro)")
self._do_set(name, value, tlv)
return True