Commits

Simone Marzola committed 5fb64b0

ops

  • Participants
  • Parent commits 9d80a09
  • Branches default

Comments (0)

Files changed (1)

File tgext/datahelpers/fields.py

         except Exception, e:
             pass
 
-        if self.file.name != self.local_path:
+        if getattr(self.file, 'name', None) != self.local_path:
             shutil.copyfileobj(self.file, open(self.local_path, 'w+'))
             self.file.seek(0)