summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gitlab.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gitlab.py b/gitlab.py
index 50f429e..342dc01 100644
--- a/gitlab.py
+++ b/gitlab.py
@@ -525,10 +525,10 @@ class GitlabObject(object):
self.__dict__[k] = []
for i in v:
self.__dict__[k].append(self._getObject(k, i))
- elif v:
- self.__dict__[k] = self._getObject(k, v)
- else: # None object
+ elif v is None:
self.__dict__[k] = None
+ else:
+ self.__dict__[k] = self._getObject(k, v)
def _create(self):
if not self.canCreate: