diff decoupage/formats.py @ 52:a2f09d749a3f

work towards refactor letting links (and maybe other things in the future) dwell in a decoupage namespace
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 16 Nov 2010 21:14:25 -0800
parents ac693b8df32c
children 47acf12d01e1
line wrap: on
line diff
--- a/decoupage/formats.py	Wed Nov 03 18:41:42 2010 -0700
+++ b/decoupage/formats.py	Tue Nov 16 21:14:25 2010 -0800
@@ -7,7 +7,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'])