changeset 80:b01b6f6efd4e

oops
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 05 Jul 2013 13:12:34 -0700
parents a8a74f6bcf93
children bb289832e061
files decoupage/formatters.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/decoupage/formatters.py	Fri Jul 05 11:32:59 2013 -0700
+++ b/decoupage/formatters.py	Fri Jul 05 13:12:34 2013 -0700
@@ -221,6 +221,8 @@
     def __call__(self, request, data):
         for f in data['files']:
             _datetime = f.get(self.key)
+            if not _datetime:
+                continue
             try:
                 datestamp = _datetime.strftime(self._string)
                 f['datestamp'] = datestamp