diff piecrust/page.py @ 711:ab5c6a8ae90a

bake: Replace hard-coded taxonomy support with "generator" system. * Taxonomies are now implemented one or more `TaxonomyGenerator`s. * A `BlogArchivesGenerator` stub is there but non-functional.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 26 May 2016 19:52:47 -0700
parents dab26ab3d533
children e7481bbbb29f
line wrap: on
line diff
--- a/piecrust/page.py	Thu May 26 19:46:28 2016 -0700
+++ b/piecrust/page.py	Thu May 26 19:52:47 2016 -0700
@@ -113,6 +113,7 @@
                     # No idea what the date/time for this page is.
                     self._datetime = datetime.datetime.fromtimestamp(0)
             except Exception as ex:
+                logger.exception(ex)
                 raise Exception(
                         "Error computing time for page: %s" %
                         self.path) from ex
@@ -155,6 +156,7 @@
         try:
             parsed_d = dateutil.parser.parse(page_date)
         except Exception as ex:
+            logger.exception(ex)
             raise ConfigurationError("Invalid date: %s" % page_date) from ex
         return datetime.date(
                 year=parsed_d.year,
@@ -175,6 +177,7 @@
         try:
             parsed_t = dateutil.parser.parse(page_time)
         except Exception as ex:
+            logger.exception(ex)
             raise ConfigurationError("Invalid time: %s" % page_time) from ex
         return datetime.timedelta(
                 hours=parsed_t.hour,