From a265af88644b313044c4419ead4a09aca0735e6d Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 11 Jan 2023 10:18:22 +0100 Subject: [PATCH] fix remove placeholder from trade --- ereuse_devicehub/resources/device/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ereuse_devicehub/resources/device/models.py b/ereuse_devicehub/resources/device/models.py index 6fa60182..566d7d85 100644 --- a/ereuse_devicehub/resources/device/models.py +++ b/ereuse_devicehub/resources/device/models.py @@ -778,6 +778,8 @@ class Device(Thing): def change_owner(self, new_user): """util for change the owner one device""" + if not new_user: + return self.owner = new_user if hasattr(self, 'components'): for c in self.components: