From b143524a6290ad4e52388cbb55ee4d7ec871264d Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Fri, 28 Mar 2014 14:48:30 +0100 Subject: Future proofed et.element check. --- meetingtools/apps/content/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meetingtools/apps/content') 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'), -- cgit v1.1