Skip to content
Permalink
Browse files

Handle #1806

  • Loading branch information
ralsina committed Jun 10, 2015
1 parent 5e45dd7 commit 349575732f52101683b068feac767941a5300cc8
Showing with 7 additions and 2 deletions.
  1. +1 −0 CHANGES.txt
  2. +6 −2 nikola/nikola.py
@@ -11,6 +11,7 @@ Features
Bugfixes
--------

* Handle rare gettz failure (Issue #1806)
* Handle missing ws4py better in auto plugin (Issue #1803)
* IDNA mixing unicode/bytes in python 3 (Issue #1802)
* Cleaner splitting of metadata in onefile posts (Issue #973)
@@ -655,9 +655,13 @@ def __init__(self, **config):
utils.LOGGER.warn("Please explicitly add the setting to your conf.py with the desired value, as the setting will default to False in the future.")

# We use one global tzinfo object all over Nikola.
self.tzinfo = dateutil.tz.gettz(self.config['TIMEZONE'])
try:
self.tzinfo = dateutil.tz.gettz(self.config['TIMEZONE'])
except Exception as exc:
utils.LOGGER.warn("Error getting TZ: {}", exc)
self.tzinfo = dateutil.tz.gettz()
self.config['__tzinfo__'] = self.tzinfo

self.plugin_manager = PluginManager(categories_filter={
"Command": Command,
"Task": Task,

0 comments on commit 3495757

Please sign in to comment.