diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 620494e9c..4f9ead259 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -492,7 +492,7 @@ class File(models.Model): data['instances'].append({ 'ignore': False, 'path': self.info['filename'], - 'user': f.item.user.username, + 'user': self.item.user.username if self.item and self.item.user else 'system', 'volume': 'Direct Upload' }) return data