From c33c8bbc3637e7f88b2007ba7fe966f5a08e480c Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 10 Dec 2020 10:00:08 +0100 Subject: [PATCH] _id is filled with uuid4 if not set yet --- pype/modules/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pype/modules/base.py b/pype/modules/base.py index 90a9e12fb5..18e1dacbbe 100644 --- a/pype/modules/base.py +++ b/pype/modules/base.py @@ -34,6 +34,8 @@ class PypeModule: @property def id(self): + if self._id is None: + self._id = uuid4() return self._id @abstractmethod