diff options
author | Johan Lundberg <lundberg@nordu.net> | 2014-03-28 14:48:30 +0100 |
---|---|---|
committer | Johan Lundberg <lundberg@nordu.net> | 2014-03-28 14:48:30 +0100 |
commit | b143524a6290ad4e52388cbb55ee4d7ec871264d (patch) | |
tree | 47a435d9ef6863b6a23ad65c0afa1d465efbe15f /meetingtools/apps/content | |
parent | 048d6f958c6b129a8c7a966082dc11b17d865952 (diff) |
Future proofed et.element check.
Diffstat (limited to 'meetingtools/apps/content')
-rw-r--r-- | meetingtools/apps/content/tasks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meetingtools/apps/content/tasks.py b/meetingtools/apps/content/tasks.py index 7b78164..723db0c 100644 --- a/meetingtools/apps/content/tasks.py +++ b/meetingtools/apps/content/tasks.py @@ -23,7 +23,7 @@ def get_owner(api, acc, sco): return None parent = r.et.xpath("//sco")[0] - if parent: + if parent is not None: if parent.findtext('name') in default_folders: owner = { 'name': sco.findtext('name'), |