From 20007d3416899311000afabc6dec4ec8052acd30 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 8 Oct 2013 06:59:23 +0000 Subject: [PATCH] TypeError: argument of type 'NoneType' is not iterable --- pandora/archive/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index f8d3fed3..22fd4088 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -371,8 +371,7 @@ class File(models.Model): for key in self.PATH_INFO: data[key] = self.info.get(key) data['users'] = list(set([i['user'] for i in data['instances']])) - if 'item' in keys: - data['item'] = self.item.itemId + data['item'] = self.item.itemId if keys: for k in data.keys(): if k not in keys: