diff decoupage/formats.py @ 55:47acf12d01e1

merge commit
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 18 Nov 2010 08:19:06 -0800
parents 0e2b9e0507c5 a2f09d749a3f
children 884e6c805208
line wrap: on
line diff
--- a/decoupage/formats.py	Thu Nov 18 08:18:49 2010 -0800
+++ b/decoupage/formats.py	Thu Nov 18 08:19:06 2010 -0800
@@ -12,7 +12,8 @@
 
   # fix datetime
   for f in data['files']:
-    f['modified'] = f['modified'].ctime()
+    if 'modified' in f:
+      f['modified'] = f['modified'].ctime()
 
   return 'application/json', json.dumps(data['files'])